Package com.alibaba.dubbo.rpc
Class Result.CompatibleResult
java.lang.Object
com.alibaba.dubbo.rpc.Result.CompatibleResult
- All Implemented Interfaces:
Result,Serializable,org.apache.dubbo.rpc.Result
- Enclosing interface:
Result
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.alibaba.dubbo.rpc.Result
Result.CompatibleResult -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddAttachments(Map<String, String> map) org.apache.dubbo.rpc.Resultget()org.apache.dubbo.rpc.ResultgetAttachment(String key) getAttachment(String key, String defaultValue) org.apache.dubbo.rpc.ResultgetValue()booleanrecreate()voidsetAttachment(String key, Object value) voidsetAttachment(String key, String value) voidsetAttachments(Map<String, String> map) voidvoidsetObjectAttachment(String key, Object value) void<U> CompletableFuture<U> org.apache.dubbo.rpc.ResultwhenCompleteWithContext(BiConsumer<org.apache.dubbo.rpc.Result, Throwable> fn) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.alibaba.dubbo.rpc.Result
addObjectAttachments, getObjectAttachment, getObjectAttachment, getObjectAttachments, getResult, setObjectAttachments
-
Constructor Details
-
CompatibleResult
public CompatibleResult(org.apache.dubbo.rpc.Result result)
-
-
Method Details
-
getDelegate
public org.apache.dubbo.rpc.Result getDelegate() -
whenCompleteWithContext
public org.apache.dubbo.rpc.Result whenCompleteWithContext(BiConsumer<org.apache.dubbo.rpc.Result, Throwable> fn) - Specified by:
whenCompleteWithContextin interfaceorg.apache.dubbo.rpc.Result
-
getValue
- Specified by:
getValuein interfaceorg.apache.dubbo.rpc.Result
-
setValue
-
getException
- Specified by:
getExceptionin interfaceorg.apache.dubbo.rpc.Result
-
setException
- Specified by:
setExceptionin interfaceResult- Specified by:
setExceptionin interfaceorg.apache.dubbo.rpc.Result
-
hasException
public boolean hasException()- Specified by:
hasExceptionin interfaceorg.apache.dubbo.rpc.Result
-
recreate
- Specified by:
recreatein interfaceorg.apache.dubbo.rpc.Result- Throws:
Throwable
-
getAttachments
- Specified by:
getAttachmentsin interfaceorg.apache.dubbo.rpc.Result
-
addAttachments
- Specified by:
addAttachmentsin interfaceorg.apache.dubbo.rpc.Result
-
setAttachments
- Specified by:
setAttachmentsin interfaceorg.apache.dubbo.rpc.Result
-
getAttachment
- Specified by:
getAttachmentin interfaceorg.apache.dubbo.rpc.Result
-
getAttachment
- Specified by:
getAttachmentin interfaceorg.apache.dubbo.rpc.Result
-
setAttachment
- Specified by:
setAttachmentin interfaceorg.apache.dubbo.rpc.Result
-
setAttachment
- Specified by:
setAttachmentin interfaceorg.apache.dubbo.rpc.Result
-
setObjectAttachment
- Specified by:
setObjectAttachmentin interfaceorg.apache.dubbo.rpc.Result
-
thenApply
- Specified by:
thenApplyin interfaceorg.apache.dubbo.rpc.Result
-
get
- Specified by:
getin interfaceorg.apache.dubbo.rpc.Result- Throws:
InterruptedExceptionExecutionException
-
get
public org.apache.dubbo.rpc.Result get(long timeout, TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException - Specified by:
getin interfaceorg.apache.dubbo.rpc.Result- Throws:
InterruptedExceptionExecutionExceptionTimeoutException
-