Package org.apache.qpid.jms
Interface JmsMessageAvailableConsumer
- All Known Implementing Classes:
JmsDurableTopicSubscriber,JmsMessageConsumer,JmsQueueReceiver,JmsSharedDurableMessageConsumer,JmsSharedMessageConsumer,JmsTopicSubscriber
public interface JmsMessageAvailableConsumer
Marker 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
Modifier and TypeMethodDescriptionGets 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 Details
-
setAvailableListener
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.
-