public class IoSessionSender extends Object implements MessageSender
Modifier and Type | Field and Description |
---|---|
static Object |
STATS_QUEUED_BYTES |
Constructor and Description |
---|
IoSessionSender(org.apache.mina.core.session.IoSession session,
StatisticsImpl statistics) |
Modifier and Type | Method and Description |
---|---|
void |
close()
Close the session of the sender
|
org.apache.mina.core.future.WriteFuture |
sendMessage(Message message,
PrepareSendHandler handler)
Send a message out to somewhere
|
String |
toString() |
public static Object STATS_QUEUED_BYTES
public IoSessionSender(org.apache.mina.core.session.IoSession session, StatisticsImpl statistics)
public org.apache.mina.core.future.WriteFuture sendMessage(Message message, PrepareSendHandler handler)
MessageSender
sendMessage
in interface MessageSender
message
- the message to sendhandler
- the prepare handler to call after the message is preparedtrue
if the message was send out (does not guarantee a successful delivery!)public void close()
MessageSender
close
in interface MessageSender