| Modifier and Type | Method and Description |
|---|---|
Message |
Session.getReadingMessage()
Returns the
Messagethat is being read now. |
Message |
Session.getWritingMessage()
Returns the
Messagethat is being written now. |
Message |
MessageRecognizer.recognize(java.nio.ByteBuffer buffer)
Converts
ByteBufferinto Message. |
| Modifier and Type | Method and Description |
|---|---|
void |
Session.fireMessageReceived(Message m)
Fires '
messageReceived' event to registered
SessionListeners. |
void |
Session.fireMessageSent(Message m)
Fires '
messageSent' event to registered
SessionListeners. |
void |
SessionListener.messageReceived(Session session,
Message message)
Invoked when a message has arrived.
|
void |
SessionListener.messageSent(Session session,
Message message)
Invoked when a message has been sent.
|
boolean |
Session.write(Message message)
Writes the specified message to the socket channel.
|
boolean |
Session.write(Message message,
long timeout)
Writes the specified message to the socket channel.
|
Copyright © 2004-2012 Trustin Lee. All Rights Reserved.