CloseFuture
, IoFuture
public class DefaultCloseFuture extends DefaultIoFuture implements CloseFuture
CloseFuture
.Constructor | 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 | 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
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