public class DefaultCloseFuture extends DefaultIoFuture implements CloseFuture
CloseFuture
.构造器和说明 |
---|
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.
|
限定符和类型 | 方法和说明 |
---|---|
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
在接口中 CloseFuture
public void setClosed()
CloseFuture
setClosed
在接口中 CloseFuture