类 Result.AbstractResult
- java.lang.Object
-
- com.alibaba.dubbo.rpc.Result.AbstractResult
-
- 所有已实现的接口:
Result,Serializable,Result
- 直接已知子类:
Result.CompatibleResult
- 封闭接口:
- Result
public abstract static class Result.AbstractResult extends Object implements Result
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 com.alibaba.dubbo.rpc.Result
Result.AbstractResult, Result.CompatibleResult
-
-
构造器概要
构造器 构造器 说明 AbstractResult()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 Resultget()Resultget(long timeout, TimeUnit unit)voidsetValue(Object value)<U> CompletableFuture<U>thenApply(Function<Result,? extends U> fn)ResultwhenCompleteWithContext(BiConsumer<Result,Throwable> fn)Add a callback which can be triggered when the RPC call finishes.-
从接口继承的方法 com.alibaba.dubbo.rpc.Result
addObjectAttachments, getObjectAttachment, getObjectAttachment, getObjectAttachments, setException, setObjectAttachments
-
从接口继承的方法 org.apache.dubbo.rpc.Result
addAttachments, getAttachment, getAttachment, getAttachments, getException, getValue, hasException, recreate, setAttachment, setAttachment, setAttachments, setObjectAttachment
-
-
-
-
方法详细资料
-
whenCompleteWithContext
public Result whenCompleteWithContext(BiConsumer<Result,Throwable> fn)
从接口复制的说明:ResultAdd a callback which can be triggered when the RPC call finishes.Just as the method name implies, this method will guarantee the callback being triggered under the same context as when the call was started, see implementation in
Result.whenCompleteWithContext(BiConsumer)- 指定者:
whenCompleteWithContext在接口中Result- 返回:
-
thenApply
public <U> CompletableFuture<U> thenApply(Function<Result,? extends U> fn)
-
get
public Result get() throws InterruptedException, ExecutionException
- 指定者:
get在接口中Result- 抛出:
InterruptedExceptionExecutionException
-
get
public Result get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException
- 指定者:
get在接口中Result- 抛出:
InterruptedExceptionExecutionExceptionTimeoutException
-
-