接口 Result
-
- 所有已知实现类:
DecodeableRpcResult
,RpcResult
public interface Result
RPC invoke result. (API, Prototype, NonThreadSafe)
-
-
方法概要
所有方法 实例方法 抽象方法 已过时的方法 修饰符和类型 方法 说明 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.
-
-
-
方法详细资料
-
getValue
Object getValue()
Get invoke result.- 返回:
- result. if no result return null.
-
getException
Throwable getException()
Get exception.- 返回:
- exception. if no exception return null.
-
hasException
boolean hasException()
Has exception.- 返回:
- has exception.
-
recreate
Object recreate() throws Throwable
Recreate.if (hasException()) { throw getException(); } else { return getValue(); }
- 返回:
- result.
- 抛出:
Throwable
-
getResult
@Deprecated Object getResult()
已过时。Replace to getValue()- 另请参阅:
getValue()
-
-