Class Consumer

java.lang.Object
com.swiftmq.impl.mqtt.pubsub.Consumer
Direct Known Subclasses:
DurableConsumer

public class Consumer extends Object
  • Field Details

    • queueReceiver

      protected QueueReceiver queueReceiver
    • readTransaction

      protected QueuePullTransaction readTransaction
    • transaction

      protected QueuePullTransaction transaction
  • Constructor Details

  • Method Details

    • createReceiver

      protected QueueReceiver createReceiver(int subscriptionId) throws Exception
      Throws:
      Exception
    • createTransaction

      public QueuePullTransaction createTransaction() throws Exception
      Throws:
      Exception
    • createReadTransaction

      public QueuePullTransaction createReadTransaction() throws Exception
      Throws:
      Exception
    • start

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

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

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

      public void close()
    • toString

      public String toString()
      Overrides:
      toString in class Object