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 and 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, getSession, isReady, join, join, removeListener
boolean isClosed()
void setClosed()
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.