org.apache.mina.common.support
Class DefaultIoFuture
java.lang.Object
org.apache.mina.common.support.DefaultIoFuture
- IoFuture
public class DefaultIoFuture
extends java.lang.Object
DefaultIoFuture
public DefaultIoFuture(IoSession session)
Creates a new instance.
session
- an IoSession
which is associated with this future
DefaultIoFuture
public DefaultIoFuture(IoSession session,
Object lock)
Creates a new instance.
session
- an IoSession
which is associated with this future
getValue
protected Object getValue()
Returns the result of the asynchronous operation.
join
public boolean join(long timeoutMillis)
- join in interface IoFuture
setValue
protected void setValue(Object newValue)
Sets the result of the asynchronous operation, and mark it as finished.