public interface MessageHandler
To receive messages asynchronously, a MessageHandler is set on a ClientConsumer. Every time the
consumer will receive a message, it will call the handler's onMessage()
method.
Modifier and Type | Method and Description |
---|---|
void |
onMessage(ClientMessage message)
Notifies the MessageHandler that a message has been received.
|
void onMessage(ClientMessage message)
message
- a messageCopyright © 2018 JBoss by Red Hat. All rights reserved.