org.flexiblepower.messaging
public interface MessageListener
MessageListener
can be used to sniff messages that are exchanges between Endpoint
s. To use it, just
register a MessageListener
in the serivce repository and the runtime should pick it up and provide you with
the messages being exchanged.
A MessageListener
can be annotated by a Filter
that limits the type of messages that are received.Filter
Modifier and Type | Method and Description |
---|---|
void |
handleMessage(ConnectionManager.EndpointPort from,
ConnectionManager.EndpointPort to,
java.lang.Object message)
This handler method is called when a matched message has been exchanged.
|
void handleMessage(ConnectionManager.EndpointPort from, ConnectionManager.EndpointPort to, java.lang.Object message)
from
- The source that sent the messageto
- The destination that has received the messagemessage
- The message object itself