IoFuture
DefaultCloseFuture
public interface CloseFuture extends IoFuture
IoFuture
for asynchronous close requests.
IoSession session = ...; CloseFuture future = session.close(); // Wait until the connection is closed future.join(); // Now connection should be closed. assert future.isClosed();
Modifier and Type | Method | Description |
---|---|---|
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.
|
addListener, getLock, getSession, isReady, join, join, removeListener
boolean isClosed()
void setClosed()