类 RpcInvocation
- java.lang.Object
-
- com.alibaba.dubbo.rpc.RpcInvocation
-
- 所有已实现的接口:
Invocation
,Serializable
- 直接已知子类:
DecodeableRpcInvocation
public class RpcInvocation extends Object implements Invocation, Serializable
RPC Invocation.- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 RpcInvocation()
RpcInvocation(Invocation invocation)
RpcInvocation(Invocation invocation, Invoker<?> invoker)
RpcInvocation(Method method, Object[] arguments)
RpcInvocation(Method method, Object[] arguments, Map<String,String> attachment)
RpcInvocation(String methodName, Class<?>[] parameterTypes, Object[] arguments)
RpcInvocation(String methodName, Class<?>[] parameterTypes, Object[] arguments, Map<String,String> attachments)
RpcInvocation(String methodName, Class<?>[] parameterTypes, Object[] arguments, Map<String,String> attachments, Invoker<?> invoker)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 void
addAttachments(Map<String,String> attachments)
void
addAttachmentsIfAbsent(Map<String,String> attachments)
Object
get(Object key)
Object[]
getArguments()
get arguments.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.Map<Object,Object>
getAttributes()
Invoker<?>
getInvoker()
get the invoker in current context.String
getMethodName()
get method name.Class<?>[]
getParameterTypes()
get parameter types.Object
put(Object key, Object value)
void
setArguments(Object[] arguments)
void
setAttachment(String key, String value)
void
setAttachmentIfAbsent(String key, String value)
void
setAttachments(Map<String,String> attachments)
void
setInvoker(Invoker<?> invoker)
void
setMethodName(String methodName)
void
setParameterTypes(Class<?>[] parameterTypes)
String
toString()
-
-
-
构造器详细资料
-
RpcInvocation
public RpcInvocation()
-
RpcInvocation
public RpcInvocation(Invocation invocation, Invoker<?> invoker)
-
RpcInvocation
public RpcInvocation(Invocation invocation)
-
RpcInvocation
public RpcInvocation(Method method, Object[] arguments, Map<String,String> attachment)
-
RpcInvocation
public RpcInvocation(String methodName, Class<?>[] parameterTypes, Object[] arguments)
-
RpcInvocation
public RpcInvocation(String methodName, Class<?>[] parameterTypes, Object[] arguments, Map<String,String> attachments)
-
-
方法详细资料
-
getInvoker
public Invoker<?> getInvoker()
从接口复制的说明:Invocation
get the invoker in current context.- 指定者:
getInvoker
在接口中Invocation
- 返回:
- invoker.
-
setInvoker
public void setInvoker(Invoker<?> invoker)
-
getMethodName
public String getMethodName()
从接口复制的说明:Invocation
get method name.- 指定者:
getMethodName
在接口中Invocation
- 返回:
- method name.
-
setMethodName
public void setMethodName(String methodName)
-
getParameterTypes
public Class<?>[] getParameterTypes()
从接口复制的说明:Invocation
get parameter types.- 指定者:
getParameterTypes
在接口中Invocation
- 返回:
- parameter types.
-
setParameterTypes
public void setParameterTypes(Class<?>[] parameterTypes)
-
getArguments
public Object[] getArguments()
从接口复制的说明:Invocation
get arguments.- 指定者:
getArguments
在接口中Invocation
- 返回:
- arguments.
-
setArguments
public void setArguments(Object[] arguments)
-
getAttachments
public Map<String,String> getAttachments()
从接口复制的说明:Invocation
get attachments.- 指定者:
getAttachments
在接口中Invocation
- 返回:
- attachments.
-
getAttachment
public String getAttachment(String key)
从接口复制的说明:Invocation
get attachment by key.- 指定者:
getAttachment
在接口中Invocation
- 返回:
- attachment value.
-
getAttachment
public String getAttachment(String key, String defaultValue)
从接口复制的说明:Invocation
get attachment by key with default value.- 指定者:
getAttachment
在接口中Invocation
- 返回:
- attachment value.
-
put
public Object put(Object key, Object value)
- 指定者:
put
在接口中Invocation
-
get
public Object get(Object key)
- 指定者:
get
在接口中Invocation
-
getAttributes
public Map<Object,Object> getAttributes()
- 指定者:
getAttributes
在接口中Invocation
-
-