public interface CloseFuture extends IoFuture
IoFuturefor 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|
Returns true if the close request is finished and the session is closed.
Marks this future as closed and notifies all threads waiting for this future.
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.