public interface Result
| 限定符和类型 | 方法和说明 |
|---|---|
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()
已过时。
Replace to getValue()
|
Object |
getValue()
Get invoke result.
|
boolean |
hasException()
Has exception.
|
Object |
recreate()
Recreate.
|
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()Copyright © 2011–2018 The Apache Software Foundation. All rights reserved.