类 RpcResult
-
- com.alibaba.dubbo.rpc.RpcResult
-
- 所有已实现的接口:
- 直接已知子类:
DecodeableRpcResult
public class RpcResult extends implements
RPC Result.- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 RpcResult()
result)
exception)
-
方法概要
所有方法 实例方法 具体方法 已过时的方法 修饰符和类型 方法 说明 void
<,> map)
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.void
key, value)
void
<,> map)
Append all items from the map into the attachment, if map is empty then nothing happensvoid
e)
void
result)
已过时。Replace to setValue()void
value)
toString()
-
-
-
方法详细资料
-
recreate
public recreate() throws
从接口复制的说明:Result
Recreate.if (hasException()) { throw getException(); } else { return getValue(); }
-
getResult
public getResult()
已过时。Replace to getValue()- 指定者:
getResult
在接口中Result
- 另请参阅:
getValue()
-
setResult
public void setResult( result)
已过时。Replace to setValue()- 另请参阅:
setValue(Object)
-
getValue
public getValue()
从接口复制的说明:Result
Get invoke result.
-
setValue
public void setValue( value)
-
getException
public getException()
从接口复制的说明:Result
Get exception.- 指定者:
getException
在接口中Result
- 返回:
- exception. if no exception return null.
-
setException
public void setException( e)
-
hasException
public boolean hasException()
从接口复制的说明:Result
Has exception.- 指定者:
hasException
在接口中Result
- 返回:
- has exception.
-
getAttachments
public <,> getAttachments()
从接口复制的说明:Result
get attachments.- 指定者:
getAttachments
在接口中Result
- 返回:
- attachments.
-
setAttachments
public void setAttachments(<,> map)
Append all items from the map into the attachment, if map is empty then nothing happens- 参数:
map
- contains all key-value pairs to append
-
addAttachments
public void addAttachments(<,> map)
-
getAttachment
public getAttachment( key)
从接口复制的说明:Result
get attachment by key.- 指定者:
getAttachment
在接口中Result
- 返回:
- attachment value.
-
getAttachment
public getAttachment( key, defaultValue)
从接口复制的说明:Result
get attachment by key with default value.- 指定者:
getAttachment
在接口中Result
- 返回:
- attachment value.
-
setAttachment
public void setAttachment( key, value)
-
toString
public toString()
- 覆盖:
在类中
-
-