类 SimpleFuture
- java.lang.Object
-
- com.alibaba.dubbo.remoting.exchange.support.SimpleFuture
-
- 所有已实现的接口:
ResponseFuture
public class SimpleFuture extends Object implements ResponseFuture
SimpleFuture
-
-
构造器概要
构造器 构造器 说明 SimpleFuture(Object value)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Objectget()get result.Objectget(int timeoutInMillis)get result with the specified timeout.booleanisDone()check is done.voidsetCallback(ResponseCallback callback)set callback.
-
-
-
构造器详细资料
-
SimpleFuture
public SimpleFuture(Object value)
-
-
方法详细资料
-
get
public Object get() throws RemotingException
从接口复制的说明:ResponseFutureget result.- 指定者:
get在接口中ResponseFuture- 返回:
- result.
- 抛出:
RemotingException
-
get
public Object get(int timeoutInMillis) throws RemotingException
从接口复制的说明:ResponseFutureget result with the specified timeout.- 指定者:
get在接口中ResponseFuture- 参数:
timeoutInMillis- timeout.- 返回:
- result.
- 抛出:
RemotingException
-
setCallback
public void setCallback(ResponseCallback callback)
从接口复制的说明:ResponseFutureset callback.- 指定者:
setCallback在接口中ResponseFuture
-
isDone
public boolean isDone()
从接口复制的说明:ResponseFuturecheck is done.- 指定者:
isDone在接口中ResponseFuture- 返回:
- done or not.
-
-