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 Type
    Method
    Description
    Gets the listener used to notify synchronous consumers that there is a message available so that the MessageConsumer.receiveNoWait() can be called.
    void
    Sets the listener used to notify synchronous consumers that there is a message available so that the MessageConsumer.receiveNoWait() can be called.
  • Method Details

    • setAvailableListener

      void setAvailableListener(JmsMessageAvailableListener availableListener)
      Sets the listener used to notify synchronous consumers that there is a message available so that the MessageConsumer.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 the MessageConsumer.receiveNoWait() can be called.
      Returns:
      the currently configured message available listener instance.