org.apache.mina.common
Interface CloseFuture
- IoFuture
- DefaultCloseFuture
public interface CloseFuture
An
IoFuture
for asynchronous close requests.
Example
IoSession session = ...;
CloseFuture future = session.close();
// Wait until the connection is closed
future.join();
// Now connection should be closed.
assert future.isClosed();
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.
|
isClosed
public boolean isClosed()
Returns true if the close request is finished and the session is closed.
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.