public class RemoteMessageConsumer extends AbstractMessageConsumer
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
donePrefetching |
protected PacketTransportEndpoint |
transportEndpoint |
autoAcknowledge, messageListener, messageSelector, noLocalclosed, connection, destination, externalAccessLock, id, session| Constructor and Description |
|---|
RemoteMessageConsumer(IntegerID consumerId,
RemoteSession session,
javax.jms.Destination destination,
String messageSelector,
boolean noLocal)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
addToPrefetchQueue(AbstractMessage prefetchedMessage,
boolean donePrefetching) |
protected void |
onConsumerClose() |
protected AbstractMessage |
receiveFromDestination(long timeout,
boolean duplicateRequired)
Receive a message from a destination
|
protected void |
remoteInit()
Initialize the remote endpoint for this consumer
|
void |
setMessageListener(javax.jms.MessageListener messageListener) |
protected boolean |
shouldLogListenersFailures() |
protected void |
wakeUp()
Wake up the consumer (SYNCHRONOUS)
|
close, getMessageListener, getMessageSelector, onConsumerClosed, receive, receive, receiveNoWait, wakeUpMessageListenercheckNotClosed, getEntitiesDescription, getId, getSession, toStringprotected PacketTransportEndpoint transportEndpoint
protected boolean donePrefetching
public RemoteMessageConsumer(IntegerID consumerId, RemoteSession session, javax.jms.Destination destination, String messageSelector, boolean noLocal) throws javax.jms.JMSException
javax.jms.JMSExceptionprotected void remoteInit()
throws javax.jms.JMSException
javax.jms.JMSExceptionprotected final boolean shouldLogListenersFailures()
shouldLogListenersFailures in class AbstractMessageConsumerpublic final void setMessageListener(javax.jms.MessageListener messageListener)
throws javax.jms.JMSException
setMessageListener in interface javax.jms.MessageConsumersetMessageListener in class AbstractMessageConsumerjavax.jms.JMSExceptionprotected final void onConsumerClose()
onConsumerClose in class AbstractMessageConsumerpublic final boolean addToPrefetchQueue(AbstractMessage prefetchedMessage, boolean donePrefetching)
protected final AbstractMessage receiveFromDestination(long timeout, boolean duplicateRequired) throws javax.jms.JMSException
AbstractMessageConsumerreceiveFromDestination in class AbstractMessageConsumerjavax.jms.JMSExceptionprotected final void wakeUp()
AbstractMessageConsumerwakeUp in class AbstractMessageConsumerCopyright © 2019. All rights reserved.