Class Consumer

java.lang.Object
com.swiftmq.impl.jms.standard.v750.Consumer
All Implemented Interfaces:
TransactionFactory
Direct Known Subclasses:
QueueConsumer, TopicConsumer, TopicDurableConsumer

public class Consumer extends Object implements TransactionFactory
  • Field Details

    • ctx

      protected SessionContext ctx
    • receiver

      protected QueueReceiver receiver
    • selector

      protected Selector selector
    • readTransaction

      protected QueuePullTransaction readTransaction
    • transaction

      protected QueuePullTransaction transaction
    • clientDispatchId

      protected int clientDispatchId
    • clientListenerId

      protected int clientListenerId
    • messageProcessor

      protected MessageProcessor messageProcessor
    • hasListener

      protected boolean hasListener
    • markedForClose

      protected boolean markedForClose
  • Constructor Details

  • Method Details

    • isAutoCommit

      protected boolean isAutoCommit()
    • setQueueReceiver

      protected void setQueueReceiver(QueueReceiver receiver)
    • setSelector

      protected void setSelector(Selector selector)
    • getSelector

      public Selector getSelector()
    • createTransaction

      public QueueTransaction createTransaction() throws Exception
      Specified by:
      createTransaction in interface TransactionFactory
      Throws:
      Exception
    • createReadTransaction

      public QueueTransaction createReadTransaction() throws Exception
      Throws:
      Exception
    • getTransaction

      public QueuePullTransaction getTransaction()
    • getReadTransaction

      public QueuePullTransaction getReadTransaction()
    • createDuplicateTransaction

      public QueueTransaction createDuplicateTransaction() throws Exception
      Throws:
      Exception
    • setMessageListener

      public void setMessageListener(int clientDispatchId, int clientListenerId, MessageProcessor messageProcessor)
    • getClientDispatchId

      public int getClientDispatchId()
    • getClientListenerId

      public int getClientListenerId()
    • getMessageProcessor

      public MessageProcessor getMessageProcessor()
    • removeMessageListener

      public void removeMessageListener()
    • hasListener

      public boolean hasListener()
    • markForClose

      public void markForClose()
      Specified by:
      markForClose in interface TransactionFactory
    • isMarkedForClose

      public boolean isMarkedForClose()
      Specified by:
      isMarkedForClose in interface TransactionFactory
    • close

      protected void close() throws Exception
      Throws:
      Exception