com.caucho.jms.queue
Interface MessageAvailableListener


public interface MessageAvailableListener

Listener for queue message available


Method Summary
 boolean notifyMessageAvailable()
          Notifies a listener that a message is available from the queue.
 

Method Detail

notifyMessageAvailable

boolean notifyMessageAvailable()
Notifies a listener that a message is available from the queue. The message handler MUST use a different thread to retrieve the message from the queue, i.e. the notifyMessageAvailable implementation must spawn or wake a thread to handle the actual message.

Returns:
true if the consumer can handle the message, false if it's busy