public static class Result.CompatibleResult extends Object implements Result
Result.CompatibleResult| Constructor and Description |
|---|
CompatibleResult(org.apache.dubbo.rpc.Result result) |
| Modifier and Type | Method and Description |
|---|---|
void |
addAttachments(Map<String,String> map) |
String |
getAttachment(String key) |
String |
getAttachment(String key,
String defaultValue) |
Map<String,String> |
getAttachments() |
org.apache.dubbo.rpc.Result |
getDelegate() |
Throwable |
getException() |
Object |
getResult() |
Object |
getValue() |
boolean |
hasException() |
Object |
recreate() |
void |
setAttachment(String key,
String value) |
void |
setAttachments(Map<String,String> map) |
public org.apache.dubbo.rpc.Result getDelegate()
public Object getValue()
getValue in interface org.apache.dubbo.rpc.Resultpublic Throwable getException()
getException in interface org.apache.dubbo.rpc.Resultpublic boolean hasException()
hasException in interface org.apache.dubbo.rpc.Resultpublic Object recreate() throws Throwable
recreate in interface org.apache.dubbo.rpc.ResultThrowablepublic Object getResult()
getResult in interface org.apache.dubbo.rpc.Resultpublic Map<String,String> getAttachments()
getAttachments in interface org.apache.dubbo.rpc.Resultpublic void addAttachments(Map<String,String> map)
addAttachments in interface org.apache.dubbo.rpc.Resultpublic void setAttachments(Map<String,String> map)
setAttachments in interface org.apache.dubbo.rpc.Resultpublic String getAttachment(String key)
getAttachment in interface org.apache.dubbo.rpc.Resultpublic String getAttachment(String key, String defaultValue)
getAttachment in interface org.apache.dubbo.rpc.ResultCopyright © 2011–2019 The Apache Software Foundation. All rights reserved.