|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.core.future.DefaultIoFuture
org.apache.mina.core.future.DefaultCloseFuture
public class DefaultCloseFuture
A default implementation of CloseFuture
.
Constructor Summary | |
---|---|
DefaultCloseFuture(IoSession session)
Creates a new instance. |
Method Summary | |
---|---|
CloseFuture |
addListener(IoFutureListener<?> listener)
Adds an event listener which is notified when this future is completed. |
CloseFuture |
await()
Wait for the asynchronous operation to complete. |
CloseFuture |
awaitUninterruptibly()
Wait for the asynchronous operation to complete uninterruptibly. |
boolean |
isClosed()
Returns true if the close request is finished and the session is closed. |
CloseFuture |
removeListener(IoFutureListener<?> listener)
Removes an existing event listener so it won't be notified when the future is completed. |
void |
setClosed()
Marks this future as closed and notifies all threads waiting for this future. |
Methods inherited from class org.apache.mina.core.future.DefaultIoFuture |
---|
await, await, awaitUninterruptibly, awaitUninterruptibly, getSession, getValue, isDone, join, join, setValue |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.mina.core.future.IoFuture |
---|
await, await, awaitUninterruptibly, awaitUninterruptibly, getSession, isDone, join, join |
Constructor Detail |
---|
public DefaultCloseFuture(IoSession session)
Method Detail |
---|
public boolean isClosed()
CloseFuture
isClosed
in interface CloseFuture
public void setClosed()
CloseFuture
setClosed
in interface CloseFuture
public CloseFuture await() throws InterruptedException
DefaultIoFuture
await
in interface CloseFuture
await
in interface IoFuture
await
in class DefaultIoFuture
InterruptedException
public CloseFuture awaitUninterruptibly()
DefaultIoFuture
awaitUninterruptibly
in interface CloseFuture
awaitUninterruptibly
in interface IoFuture
awaitUninterruptibly
in class DefaultIoFuture
public CloseFuture addListener(IoFutureListener<?> listener)
DefaultIoFuture
addListener
in interface CloseFuture
addListener
in interface IoFuture
addListener
in class DefaultIoFuture
public CloseFuture removeListener(IoFutureListener<?> listener)
DefaultIoFuture
removeListener
in interface CloseFuture
removeListener
in interface IoFuture
removeListener
in class DefaultIoFuture
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |