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, 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 在接口中 CloseFuturepublic void setClosed()
CloseFuturesetClosed 在接口中 CloseFuture