|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alibaba.dubbo.remoting.exchange.support.SimpleFuture
public class SimpleFuture
SimpleFuture
Constructor Summary | |
---|---|
SimpleFuture(Object value)
|
Method Summary | |
---|---|
Object |
get()
get result. |
Object |
get(int timeoutInMillis)
get result with the specified timeout. |
boolean |
isDone()
check is done. |
void |
setCallback(ResponseCallback callback)
set callback. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SimpleFuture(Object value)
Method Detail |
---|
public Object get() throws RemotingException
ResponseFuture
get
in interface ResponseFuture
RemotingException
public Object get(int timeoutInMillis) throws RemotingException
ResponseFuture
get
in interface ResponseFuture
timeoutInMillis
- timeout.
RemotingException
public void setCallback(ResponseCallback callback)
ResponseFuture
setCallback
in interface ResponseFuture
public boolean isDone()
ResponseFuture
isDone
in interface ResponseFuture
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |