All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.backendless.servercode.extension.MessagingExtender Maven / Gradle / Ivy

There is a newer version: 3.1.0
Show newest version
package com.backendless.servercode.extension;

import com.backendless.DeviceRegistration;
import com.backendless.messaging.*;
import com.backendless.servercode.ExecutionResult;
import com.backendless.servercode.RunnerContext;

/**
 * Created with IntelliJ IDEA.
 * User: ivanlappo
 * Date: 5/20/13
 * Time: 12:40 PM
 * To change this template use File | Settings | File Templates.
 */
public abstract class MessagingExtender
{
  public MessagingExtender()
  {
  }

  public void beforePublish( RunnerContext context, Object Message, PublishOptions publishOptions,
                             DeliveryOptions deliveryOptions ) throws Exception
  {
  }

  public void afterPublish( RunnerContext context, Object Message, PublishOptions publishOptions,
                            DeliveryOptions deliveryOptions,
                                     ExecutionResult status ) throws Exception
  {
  }

  public void beforeSubscribe( RunnerContext context,
                               String subscriptionId,
                               String channel,
                               SubscriptionOptions options ) throws Exception
  {
  }

  public void afterSubscribe( RunnerContext context, String subscriptionId,
                                String channel,
                                SubscriptionOptions options,
                                ExecutionResult subscriberId ) throws Exception
  {
  }

  public void beforePoll( RunnerContext context, String subscriptionId ) throws Exception
  {
  }

  public void afterPoll( RunnerContext context, String subscriptionId,
                         ExecutionResult messages ) throws Exception
  {
  }

  public void beforeCancel( RunnerContext context, String subscriptionId ) throws Exception
  {
  }

  public void afterCancel( RunnerContext context, String subscriptionId, ExecutionResult status ) throws Exception
  {
  }

  public void beforeDeviceRegistration( RunnerContext context, DeviceRegistration registrationDto ) throws Exception
  {
  }

  public void afterDeviceRegistration( RunnerContext context, DeviceRegistration registrationDto,
                                       ExecutionResult registrationId ) throws Exception
  {
  }
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy