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, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addListener, getLock, getSession, isReady, join, join, removeListener
public DefaultCloseFuture(IoSession session)
public DefaultCloseFuture(IoSession session, java.lang.Object lock)
public boolean isClosed()
CloseFuture
isClosed
in interface CloseFuture
public void setClosed()
CloseFuture
setClosed
in interface CloseFuture