org.flexiblepower.messaging
public interface MessageHandler
MessageHandler
should be returned when a connection is coupled to an endpoint (see
Endpoint.onConnect(Connection)
.
This interface should be implemented by users
Modifier and Type | Method and Description |
---|---|
void |
disconnected()
Called when the related connection has been destroyed.
|
void |
handleMessage(java.lang.Object message)
Called when a new message is available for processing.
|
void handleMessage(java.lang.Object message)
Thread
by the runtime environment.message
- The message that should be handled.void disconnected()
Connection.sendMessage(Object)
will be ignored.