com.caucho.jms.queue
Interface MessageCallback<E>
public interface MessageCallback<E>
Listener for queue message available
Method Summary |
void |
messageReceived(java.lang.String msgId,
E payload)
Notifies a listener that a message is available from the queue. |
messageReceived
void messageReceived(java.lang.String msgId,
E payload)
- 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.