public static class IoFilter.WriteRequest
extends java.lang.Object
IoSession.write(Object)
.Constructor and Description |
---|
WriteRequest(java.lang.Object message)
Creates a new instance without
WriteFuture . |
WriteRequest(java.lang.Object message,
WriteFuture future)
Creates a new instance with
WriteFuture . |
WriteRequest(java.lang.Object message,
WriteFuture future,
java.net.SocketAddress destination)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
java.net.SocketAddress |
getDestination()
Returne the destination of this write request.
|
WriteFuture |
getFuture()
Returns
WriteFuture that is associated with this write request. |
java.lang.Object |
getMessage()
Returns a message object to be written.
|
java.lang.String |
toString() |
public WriteRequest(java.lang.Object message)
WriteFuture
. You'll get
an instance of WriteFuture
even if you called this constructor
because getFuture()
will return a bogus future.public WriteRequest(java.lang.Object message, WriteFuture future)
WriteFuture
.public WriteRequest(java.lang.Object message, WriteFuture future, java.net.SocketAddress destination)
message
- a message to writefuture
- a future that needs to be notified when an operation is finisheddestination
- the destination of the message. This property will be
ignored unless the transport supports it.public WriteFuture getFuture()
WriteFuture
that is associated with this write request.public java.lang.Object getMessage()
public java.net.SocketAddress getDestination()
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.