public static class IoFilter.WriteRequest
extends java.lang.Object
IoSession.write(Object)
.构造器和说明 |
---|
IoFilter.WriteRequest(java.lang.Object message)
Creates a new instance without
WriteFuture . |
IoFilter.WriteRequest(java.lang.Object message,
WriteFuture future)
Creates a new instance with
WriteFuture . |
IoFilter.WriteRequest(java.lang.Object message,
WriteFuture future,
java.net.SocketAddress destination)
Creates a new instance.
|
限定符和类型 | 方法和说明 |
---|---|
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 IoFilter.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 IoFilter.WriteRequest(java.lang.Object message, WriteFuture future)
WriteFuture
.public IoFilter.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
在类中 java.lang.Object