|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.common.IoFilter.WriteRequest
public static class IoFilter.WriteRequest
Represents write request fired by IoSession.write(Object)
.
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
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.Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |