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();
限定符和类型 | 方法和说明 |
---|---|
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