类 SimpleFuture
- java.lang.Object
-
- com.alibaba.dubbo.remoting.exchange.support.SimpleFuture
-
- 所有已实现的接口:
ResponseFuture
public class SimpleFuture extends Object implements ResponseFuture
SimpleFuture
-
-
构造器概要
构造器 构造器 说明 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.
-
-
-
构造器详细资料
-
SimpleFuture
public SimpleFuture(Object value)
-
-
方法详细资料
-
get
public Object get() throws RemotingException
从接口复制的说明:ResponseFuture
get result.- 指定者:
get
在接口中ResponseFuture
- 返回:
- result.
- 抛出:
RemotingException
-
get
public Object get(int timeoutInMillis) throws RemotingException
从接口复制的说明:ResponseFuture
get result with the specified timeout.- 指定者:
get
在接口中ResponseFuture
- 参数:
timeoutInMillis
- timeout.- 返回:
- result.
- 抛出:
RemotingException
-
setCallback
public void setCallback(ResponseCallback callback)
从接口复制的说明:ResponseFuture
set callback.- 指定者:
setCallback
在接口中ResponseFuture
-
isDone
public boolean isDone()
从接口复制的说明:ResponseFuture
check is done.- 指定者:
isDone
在接口中ResponseFuture
- 返回:
- done or not.
-
-