org.apache.mina.common.support
Class DefaultCloseFuture
- CloseFuture, IoFuture
public class DefaultCloseFuture
boolean | isClosed() - Returns true if the close request is finished and the session is closed.
|
void | setClosed() - Marks this future as closed and notifies all threads waiting for this
future.
|
DefaultCloseFuture
public DefaultCloseFuture(IoSession session)
Creates a new instance.
DefaultCloseFuture
public DefaultCloseFuture(IoSession session,
Object lock)
Creates a new instance which uses the specified object as a lock.
isClosed
public boolean isClosed()
Returns true if the close request is finished and the session is closed.
- isClosed in interface CloseFuture
setClosed
public void setClosed()
Marks this future as closed and notifies all threads waiting for this
future. This method is invoked by MINA internally. Please do not call
this method directly.
- setClosed in interface CloseFuture