public class SimpleFuture extends Object implements ResponseFuture
| 构造器和说明 |
|---|
SimpleFuture(Object value) |
| 限定符和类型 | 方法和说明 |
|---|---|
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 在接口中 ResponseFutureRemotingExceptionpublic Object get(int timeoutInMillis) throws RemotingException
ResponseFutureget 在接口中 ResponseFuturetimeoutInMillis - timeout.RemotingExceptionpublic void setCallback(ResponseCallback callback)
ResponseFuturesetCallback 在接口中 ResponseFuturepublic boolean isDone()
ResponseFutureisDone 在接口中 ResponseFutureCopyright © 2011–2018 The Apache Software Foundation. All rights reserved.