|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.mina.common.support.DefaultIoFuture
public class DefaultIoFuture
A default implementation of IoFuture
.
Constructor Summary | |
---|---|
DefaultIoFuture(org.apache.mina.common.IoSession session)
Creates a new instance. |
|
DefaultIoFuture(org.apache.mina.common.IoSession session,
Object lock)
Creates a new instance which uses the specified object as a lock. |
Method Summary | |
---|---|
void |
addListener(org.apache.mina.common.IoFutureListener listener)
|
Object |
getLock()
|
org.apache.mina.common.IoSession |
getSession()
|
protected Object |
getValue()
Returns the result of the asynchronous operation. |
boolean |
isReady()
|
void |
join()
|
boolean |
join(long timeoutInMillis)
|
void |
removeListener(org.apache.mina.common.IoFutureListener listener)
|
protected void |
setValue(Object newValue)
Sets the result of the asynchronous operation, and mark it as finished. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultIoFuture(org.apache.mina.common.IoSession session)
session
- an IoSession
which is associated with this futurepublic DefaultIoFuture(org.apache.mina.common.IoSession session, Object lock)
Method Detail |
---|
public org.apache.mina.common.IoSession getSession()
getSession
in interface org.apache.mina.common.IoFuture
public Object getLock()
getLock
in interface org.apache.mina.common.IoFuture
public void join()
join
in interface org.apache.mina.common.IoFuture
public boolean join(long timeoutInMillis)
join
in interface org.apache.mina.common.IoFuture
public boolean isReady()
isReady
in interface org.apache.mina.common.IoFuture
protected void setValue(Object newValue)
protected Object getValue()
public void addListener(org.apache.mina.common.IoFutureListener listener)
addListener
in interface org.apache.mina.common.IoFuture
public void removeListener(org.apache.mina.common.IoFutureListener listener)
removeListener
in interface org.apache.mina.common.IoFuture
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |