Package org.apache.qpid.jms
Interface JmsMessageAvailableConsumer
-
- All Known Implementing Classes:
JmsDurableTopicSubscriber,JmsMessageConsumer,JmsQueueReceiver,JmsSharedDurableMessageConsumer,JmsSharedMessageConsumer,JmsTopicSubscriber
public interface JmsMessageAvailableConsumerMarker interface used for MessageConsumer instances that support sending a notification event when a message has arrived when the consumer is not in asynchronous dispatch mode.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description JmsMessageAvailableListenergetAvailableListener()Gets the listener used to notify synchronous consumers that there is a message available so that theMessageConsumer.receiveNoWait()can be called.voidsetAvailableListener(JmsMessageAvailableListener availableListener)Sets the listener used to notify synchronous consumers that there is a message available so that theMessageConsumer.receiveNoWait()can be called.
-
-
-
Method Detail
-
setAvailableListener
void setAvailableListener(JmsMessageAvailableListener availableListener)
Sets the listener used to notify synchronous consumers that there is a message available so that theMessageConsumer.receiveNoWait()can be called.- Parameters:
availableListener- the JmsMessageAvailableListener instance to signal.
-
getAvailableListener
JmsMessageAvailableListener getAvailableListener()
Gets the listener used to notify synchronous consumers that there is a message available so that theMessageConsumer.receiveNoWait()can be called.- Returns:
- the currently configured message available listener instance.
-
-