public class SimpleFuture extends Object implements ResponseFuture
| Constructor and Description |
|---|
SimpleFuture(Object value) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public SimpleFuture(Object value)
public Object get() throws RemotingException
ResponseFutureget in interface ResponseFutureRemotingExceptionpublic Object get(int timeoutInMillis) throws RemotingException
ResponseFutureget in interface ResponseFuturetimeoutInMillis - timeout.RemotingExceptionpublic void setCallback(ResponseCallback callback)
ResponseFuturesetCallback in interface ResponseFuturepublic boolean isDone()
ResponseFutureisDone in interface ResponseFutureCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.