Class IoFilter.WriteRequest

java.lang.Object
org.apache.mina.common.IoFilter.WriteRequest
Enclosing interface:
IoFilter

public static class IoFilter.WriteRequest extends Object
Represents write request fired by IoSession.write(Object).
  • Constructor Details

    • WriteRequest

      public WriteRequest(Object message)
      Creates a new instance without WriteFuture. You'll get an instance of WriteFuture even if you called this constructor because getFuture() will return a bogus future.
    • WriteRequest

      public WriteRequest(Object message, WriteFuture future)
      Creates a new instance with WriteFuture.
    • WriteRequest

      public WriteRequest(Object message, WriteFuture future, SocketAddress destination)
      Creates a new instance.
      Parameters:
      message - a message to write
      future - a future that needs to be notified when an operation is finished
      destination - the destination of the message. This property will be ignored unless the transport supports it.
  • Method Details

    • getFuture

      public WriteFuture getFuture()
      Returns WriteFuture that is associated with this write request.
    • getMessage

      public Object getMessage()
      Returns a message object to be written.
    • getDestination

      public SocketAddress getDestination()
      Returne the destination of this write request.
      Returns:
      null for the default destination
    • toString

      public String toString()
      Overrides:
      toString in class Object