接口 ResponseFuture
-
- 所有已知实现类:
DefaultFuture
,SimpleFuture
public interface ResponseFuture
Future. (API/SPI, Prototype, ThreadSafe)
-
-
方法概要
所有方法 实例方法 抽象方法 修饰符和类型 方法 说明 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.
-
-
-
方法详细资料
-
get
Object get() throws RemotingException
get result.- 返回:
- result.
- 抛出:
RemotingException
-
get
Object get(int timeoutInMillis) throws RemotingException
get result with the specified timeout.- 参数:
timeoutInMillis
- timeout.- 返回:
- result.
- 抛出:
RemotingException
-
setCallback
void setCallback(ResponseCallback callback)
set callback.- 参数:
callback
-
-
isDone
boolean isDone()
check is done.- 返回:
- done or not.
-
-