Package org.apache.mina.common
Class IoFilter.WriteRequest
java.lang.Object
org.apache.mina.common.IoFilter.WriteRequest
- Enclosing interface:
- IoFilter
Represents write request fired by
IoSession.write(Object).-
Constructor Summary
ConstructorsConstructorDescriptionWriteRequest(Object message) Creates a new instance withoutWriteFuture.WriteRequest(Object message, WriteFuture future) Creates a new instance withWriteFuture.WriteRequest(Object message, WriteFuture future, SocketAddress destination) Creates a new instance. -
Method Summary
Modifier and TypeMethodDescriptionReturne the destination of this write request.ReturnsWriteFuturethat is associated with this write request.Returns a message object to be written.toString()
-
Constructor Details
-
WriteRequest
Creates a new instance withoutWriteFuture. You'll get an instance ofWriteFutureeven if you called this constructor becausegetFuture()will return a bogus future. -
WriteRequest
Creates a new instance withWriteFuture. -
WriteRequest
Creates a new instance.- Parameters:
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 Details
-
getFuture
ReturnsWriteFuturethat is associated with this write request. -
getMessage
Returns a message object to be written. -
getDestination
Returne the destination of this write request.- Returns:
- null for the default destination
-
toString
-