类 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)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 voidaddAttachments(Map<String,String> attachments)voidaddAttachmentsIfAbsent(Map<String,String> attachments)Objectget(Object key)Object[]getArguments()get arguments.StringgetAttachment(String key)get attachment by key.StringgetAttachment(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.StringgetMethodName()get method name.Class<?>[]getParameterTypes()get parameter types.Objectput(Object key, Object value)voidsetArguments(Object[] arguments)voidsetAttachment(String key, String value)voidsetAttachmentIfAbsent(String key, String value)voidsetAttachments(Map<String,String> attachments)voidsetInvoker(Invoker<?> invoker)voidsetMethodName(String methodName)voidsetParameterTypes(Class<?>[] parameterTypes)StringtoString()
-
-
-
构造器详细资料
-
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()
从接口复制的说明:Invocationget the invoker in current context.- 指定者:
getInvoker在接口中Invocation- 返回:
- invoker.
-
setInvoker
public void setInvoker(Invoker<?> invoker)
-
getMethodName
public String getMethodName()
从接口复制的说明:Invocationget method name.- 指定者:
getMethodName在接口中Invocation- 返回:
- method name.
-
setMethodName
public void setMethodName(String methodName)
-
getParameterTypes
public Class<?>[] getParameterTypes()
从接口复制的说明:Invocationget parameter types.- 指定者:
getParameterTypes在接口中Invocation- 返回:
- parameter types.
-
setParameterTypes
public void setParameterTypes(Class<?>[] parameterTypes)
-
getArguments
public Object[] getArguments()
从接口复制的说明:Invocationget arguments.- 指定者:
getArguments在接口中Invocation- 返回:
- arguments.
-
setArguments
public void setArguments(Object[] arguments)
-
getAttachments
public Map<String,String> getAttachments()
从接口复制的说明:Invocationget attachments.- 指定者:
getAttachments在接口中Invocation- 返回:
- attachments.
-
getAttachment
public String getAttachment(String key)
从接口复制的说明:Invocationget attachment by key.- 指定者:
getAttachment在接口中Invocation- 返回:
- attachment value.
-
getAttachment
public String getAttachment(String key, String defaultValue)
从接口复制的说明:Invocationget 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
-
-