public interface IoFuture
Modifier and Type | Method and Description |
---|---|
void |
addListener(IoFutureListener listener)
Adds an event listener which is notified when
the state of this future changes.
|
java.lang.Object |
getLock()
Returns the lock object this future acquires.
|
IoSession |
getSession()
Returns the
IoSession which is associated with this future. |
boolean |
isReady()
Returns if the asynchronous operation is finished.
|
void |
join()
Wait for the asynchronous operation to end.
|
boolean |
join(long timeoutInMillis)
Wait for the asynchronous operation to end with the specified timeout.
|
void |
removeListener(IoFutureListener listener)
Removes an existing event listener which is notified when
the state of this future changes.
|
java.lang.Object getLock()
void join()
boolean join(long timeoutInMillis)
boolean isReady()
void addListener(IoFutureListener listener)
void removeListener(IoFutureListener listener)
Copyright © 2004-2019 Apache MINA Project. All Rights Reserved.