public interface MessageListener
PullPushAdapter) provide an
event-like, push-style message delivery model.
In this case, the entity to be notified of message reception needs to
provide a callback to be invoked whenever a message has been received.
The MessageListener interface provides a method to do so.| Modifier and Type | Method and Description |
|---|---|
byte[] |
getState()
Answers the group state; e.g., when joining.
|
void |
receive(Message msg)
Called when a message is received.
|
void |
setState(byte[] state)
Sets the group state; e.g., when joining.
|
void receive(Message msg)
msg - byte[] getState()
void setState(byte[] state)
state - Copyright © 2015 JBoss, a division of Red Hat. All rights reserved.