|
||||||||||
| 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 ResponseFutureRemotingException
public Object get(int timeoutInMillis)
throws RemotingException
ResponseFuture
get in interface ResponseFuturetimeoutInMillis - timeout.
RemotingExceptionpublic void setCallback(ResponseCallback callback)
ResponseFuture
setCallback in interface ResponseFuturepublic boolean isDone()
ResponseFuture
isDone in interface ResponseFuture
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||