Package org.apache.mina.common
Interface CloseFuture
-
- All Superinterfaces:
IoFuture
- All Known Implementing Classes:
DefaultCloseFuture
public interface CloseFuture extends IoFuture
AnIoFuturefor 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();
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisClosed()Returns true if the close request is finished and the session is closed.voidsetClosed()Marks this future as closed and notifies all threads waiting for this future.-
Methods inherited from interface org.apache.mina.common.IoFuture
addListener, getLock, getSession, isReady, join, join, removeListener
-
-
-
-
Method Detail
-
isClosed
boolean isClosed()
Returns true if the close request is finished and the session is closed.
-
setClosed
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.
-
-