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