|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.mina.common.DefaultIoFuture
org.apache.mina.common.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 the state of this future changes. |
CloseFuture |
await()
Wait for the asynchronous operation to end. |
CloseFuture |
awaitUninterruptibly()
Wait for the asynchronous operation to end 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 which is notified when the state of this future changes. |
void |
setClosed()
Marks this future as closed and notifies all threads waiting for this future. |
| Methods inherited from class org.apache.mina.common.DefaultIoFuture |
|---|
await, await, awaitUninterruptibly, awaitUninterruptibly, getSession, getValue, isReady, 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.common.IoFuture |
|---|
await, await, awaitUninterruptibly, awaitUninterruptibly, getSession, isReady, join, join |
| Constructor Detail |
|---|
public DefaultCloseFuture(IoSession session)
| Method Detail |
|---|
public boolean isClosed()
CloseFuture
isClosed in interface CloseFuturepublic void setClosed()
CloseFuture
setClosed in interface CloseFuture
public CloseFuture await()
throws InterruptedException
IoFuture
await in interface CloseFutureawait in interface IoFutureawait in class DefaultIoFutureInterruptedExceptionpublic CloseFuture awaitUninterruptibly()
IoFuture
awaitUninterruptibly in interface CloseFutureawaitUninterruptibly in interface IoFutureawaitUninterruptibly in class DefaultIoFuturepublic CloseFuture addListener(IoFutureListener<?> listener)
IoFuture
addListener in interface CloseFutureaddListener in interface IoFutureaddListener in class DefaultIoFuturepublic CloseFuture removeListener(IoFutureListener<?> listener)
IoFuture
removeListener in interface CloseFutureremoveListener in interface IoFutureremoveListener in class DefaultIoFuture
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||