Class Subscription

java.lang.Object
com.swiftmq.swiftlet.queue.MessageProcessor
com.swiftmq.impl.mqtt.pubsub.Subscription
All Implemented Interfaces:
com.swiftmq.swiftlet.threadpool.AsyncTask, Runnable

public class Subscription extends com.swiftmq.swiftlet.queue.MessageProcessor
  • Constructor Details

  • Method Details

    • getTopicName

      public String getTopicName()
    • getStoreEntry

      public SubscriptionStoreEntry getStoreEntry()
    • fillRegistryUsage

      public void fillRegistryUsage(com.swiftmq.mgmt.Entity usageRegistry)
    • fillConnectionUsage

      public void fillConnectionUsage(com.swiftmq.mgmt.Entity usageConnection)
    • getMsgsReceived

      public int getMsgsReceived()
    • getTotalMsgsReceived

      public int getTotalMsgsReceived()
    • start

      public void start() throws Exception
      Throws:
      Exception
    • restart

      public void restart() throws Exception
      Throws:
      Exception
    • stop

      public void stop()
      Specified by:
      stop in interface com.swiftmq.swiftlet.threadpool.AsyncTask
      Overrides:
      stop in class com.swiftmq.swiftlet.queue.MessageProcessor
    • processMessage

      public void processMessage(com.swiftmq.swiftlet.queue.MessageEntry messageEntry)
      Specified by:
      processMessage in class com.swiftmq.swiftlet.queue.MessageProcessor
    • processException

      public void processException(Exception e)
      Specified by:
      processException in class com.swiftmq.swiftlet.queue.MessageProcessor
    • isValid

      public boolean isValid()
    • close

      public void close()
    • close

      public void close(com.swiftmq.swiftlet.auth.ActiveLogin activeLogin)