Class Consumer
java.lang.Object
com.swiftmq.impl.jms.standard.v750.Consumer
- All Implemented Interfaces:
TransactionFactory
- Direct Known Subclasses:
QueueConsumer
,TopicConsumer
,TopicDurableConsumer
-
Field Summary
Modifier and TypeFieldDescriptionprotected int
protected int
protected SessionContext
protected boolean
protected boolean
protected MessageProcessor
protected QueuePullTransaction
protected QueueReceiver
protected Selector
protected QueuePullTransaction
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
close()
QueueTransaction
QueueTransaction
QueueTransaction
int
int
MessageProcessor
QueuePullTransaction
Selector
QueuePullTransaction
boolean
protected boolean
boolean
void
void
void
setMessageListener
(int clientDispatchId, int clientListenerId, MessageProcessor messageProcessor) protected void
setQueueReceiver
(QueueReceiver receiver) protected void
setSelector
(Selector selector)
-
Field Details
-
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
-
Consumer
-
-
Method Details
-
isAutoCommit
protected boolean isAutoCommit() -
setQueueReceiver
protected void setQueueReceiver(QueueReceiver receiver) -
setSelector
protected void setSelector(Selector selector) -
getSelector
public Selector getSelector() -
createTransaction
- Specified by:
createTransaction
in interfaceTransactionFactory
- Throws:
Exception
-
createReadTransaction
- Throws:
Exception
-
getTransaction
public QueuePullTransaction getTransaction() -
getReadTransaction
public QueuePullTransaction getReadTransaction() -
createDuplicateTransaction
- 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 interfaceTransactionFactory
-
isMarkedForClose
public boolean isMarkedForClose()- Specified by:
isMarkedForClose
in interfaceTransactionFactory
-
close
- Throws:
Exception
-