public class IoSessionSender extends java.lang.Object implements MessageSender
| Modifier and Type | Field and Description |
|---|---|
static java.lang.Object |
STATS_QUEUED_BYTES |
| Constructor and Description |
|---|
IoSessionSender(IoSession session,
StatisticsImpl statistics) |
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Close the session of the sender
|
WriteFuture |
sendMessage(Message message,
PrepareSendHandler handler)
Send a message out to somewhere
|
java.lang.String |
toString() |
public IoSessionSender(IoSession session,
StatisticsImpl statistics)
public WriteFuture sendMessage(Message message, PrepareSendHandler handler)
MessageSendersendMessage in interface MessageSendermessage - 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()
MessageSenderclose in interface MessageSenderpublic java.lang.String toString()
toString in class java.lang.Object
Copyright (c) IBH SYSTEMS GmbH and others 2010, 2013.
All rights reserved. This program and the accompanying materials
are made available under the terms of the
Eclipse Public License v1.0