public class DefaultCloseFuture extends DefaultIoFuture implements CloseFuture
CloseFuture.| Constructor and Description |
|---|
DefaultCloseFuture(IoSession session)
Creates a new instance.
|
DefaultCloseFuture(IoSession session,
java.lang.Object lock)
Creates a new instance which uses the specified object as a lock.
|
| 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, getLock, getSession, getValue, isReady, join, join, removeListener, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddListener, getLock, getSession, isReady, join, join, removeListenerpublic DefaultCloseFuture(IoSession session)
public DefaultCloseFuture(IoSession session, java.lang.Object lock)
public boolean isClosed()
CloseFutureisClosed in interface CloseFuturepublic void setClosed()
CloseFuturesetClosed in interface CloseFuture