|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Result
RPC invoke result. (API, Prototype, NonThreadSafe)
Invoker.invoke(Invocation)
,
RpcResult
Method Summary | |
---|---|
String |
getAttachment(String key)
get attachment by key. |
String |
getAttachment(String key,
String defaultValue)
get attachment by key with default value. |
Map<String,String> |
getAttachments()
get attachments. |
Throwable |
getException()
Get exception. |
Object |
getResult()
Deprecated. Replace to getValue() |
Object |
getValue()
Get invoke result. |
boolean |
hasException()
Has exception. |
Object |
recreate()
Recreate. |
Method Detail |
---|
Object getValue()
Throwable getException()
boolean hasException()
Object recreate() throws Throwable
if (hasException()) {
throw getException();
} else {
return getValue();
}
if
- has exception throw it.
Throwable
@Deprecated Object getResult()
getValue()
Map<String,String> getAttachments()
String getAttachment(String key)
String getAttachment(String key, String defaultValue)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |