MessageListener
public interface MessageListener
Use a MessageListener to receive asynchronously delivered messages.
Methods
- onMessage
public void onMessage(Message message)
Pass a message to the listener.
- Parameters:
- message: the message passed to the listener.
- See also
- Session.setMessageListener