类 RpcInvocation
- java.lang.Object
-
- org.apache.dubbo.rpc.RpcInvocation
-
- 所有已实现的接口:
Serializable,Invocation
- 直接已知子类:
DecodeableRpcInvocation
public class RpcInvocation extends Object implements Invocation, Serializable
RPC Invocation.- 另请参阅:
- 序列化表格
-
-
构造器概要
构造器 构造器 说明 RpcInvocation()RpcInvocation(Method method, String serviceName, String protocolServiceKey, Object[] arguments)RpcInvocation(Method method, String serviceName, String protocolServiceKey, Object[] arguments, Map<String,Object> attachment, Map<Object,Object> attributes)RpcInvocation(String methodName, String serviceName, String protocolServiceKey, Class<?>[] parameterTypes, Object[] arguments)RpcInvocation(String methodName, String serviceName, String protocolServiceKey, Class<?>[] parameterTypes, Object[] arguments, Map<String,Object> attachments)RpcInvocation(String methodName, String serviceName, String protocolServiceKey, Class<?>[] parameterTypes, Object[] arguments, Map<String,Object> attachments, Invoker<?> invoker, Map<Object,Object> attributes)RpcInvocation(Invocation invocation)RpcInvocation(Invocation invocation, Invoker<?> invoker)
-
方法概要
-
-
-
构造器详细资料
-
RpcInvocation
public RpcInvocation()
-
RpcInvocation
public RpcInvocation(Invocation invocation, Invoker<?> invoker)
-
RpcInvocation
public RpcInvocation(Invocation invocation)
-
RpcInvocation
public RpcInvocation(Method method, String serviceName, String protocolServiceKey, Object[] arguments)
-
RpcInvocation
public RpcInvocation(Method method, String serviceName, String protocolServiceKey, Object[] arguments, Map<String,Object> attachment, Map<Object,Object> attributes)
-
RpcInvocation
public RpcInvocation(String methodName, String serviceName, String protocolServiceKey, Class<?>[] parameterTypes, Object[] arguments)
-
RpcInvocation
public RpcInvocation(String methodName, String serviceName, String protocolServiceKey, Class<?>[] parameterTypes, Object[] arguments, Map<String,Object> attachments)
-
-
方法详细资料
-
getInvoker
public Invoker<?> getInvoker()
从接口复制的说明:Invocationget the invoker in current context.- 指定者:
getInvoker在接口中Invocation- 返回:
- invoker.
-
setInvoker
public void setInvoker(Invoker<?> invoker)
-
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
-
getTargetServiceUniqueName
public String getTargetServiceUniqueName()
- 指定者:
getTargetServiceUniqueName在接口中Invocation
-
getProtocolServiceKey
public String getProtocolServiceKey()
- 指定者:
getProtocolServiceKey在接口中Invocation
-
setTargetServiceUniqueName
public void setTargetServiceUniqueName(String targetServiceUniqueName)
-
getMethodName
public String getMethodName()
从接口复制的说明:Invocationget method name.- 指定者:
getMethodName在接口中Invocation- 返回:
- method name.
-
getServiceName
public String getServiceName()
从接口复制的说明:Invocationget the interface name- 指定者:
getServiceName在接口中Invocation- 返回:
-
setServiceName
public void setServiceName(String serviceName)
-
setMethodName
public void setMethodName(String methodName)
-
getParameterTypes
public Class<?>[] getParameterTypes()
从接口复制的说明:Invocationget parameter types.- 指定者:
getParameterTypes在接口中Invocation- 返回:
- parameter types.
-
setParameterTypes
public void setParameterTypes(Class<?>[] parameterTypes)
-
getParameterTypesDesc
public String getParameterTypesDesc()
-
setParameterTypesDesc
public void setParameterTypesDesc(String parameterTypesDesc)
-
getCompatibleParamSignatures
public String[] getCompatibleParamSignatures()
从接口复制的说明:Invocationget parameter's signature, string representation of parameter types.- 指定者:
getCompatibleParamSignatures在接口中Invocation- 返回:
- parameter's signature
-
setCompatibleParamSignatures
public void setCompatibleParamSignatures(String[] compatibleParamSignatures)
-
getArguments
public Object[] getArguments()
从接口复制的说明:Invocationget arguments.- 指定者:
getArguments在接口中Invocation- 返回:
- arguments.
-
setArguments
public void setArguments(Object[] arguments)
-
getObjectAttachments
public Map<String,Object> getObjectAttachments()
- 指定者:
getObjectAttachments在接口中Invocation
-
setAttachment
public void setAttachment(String key, String value)
- 指定者:
setAttachment在接口中Invocation
-
getAttachments
@Deprecated public Map<String,String> getAttachments()
已过时。从接口复制的说明:Invocationget attachments.- 指定者:
getAttachments在接口中Invocation- 返回:
- attachments.
-
setAttachments
@Deprecated public void setAttachments(Map<String,String> attachments)
已过时。
-
setAttachment
public void setAttachment(String key, Object value)
- 指定者:
setAttachment在接口中Invocation
-
setObjectAttachment
public void setObjectAttachment(String key, Object value)
- 指定者:
setObjectAttachment在接口中Invocation
-
setAttachmentIfAbsent
public void setAttachmentIfAbsent(String key, String value)
- 指定者:
setAttachmentIfAbsent在接口中Invocation
-
setAttachmentIfAbsent
public void setAttachmentIfAbsent(String key, Object value)
- 指定者:
setAttachmentIfAbsent在接口中Invocation
-
setObjectAttachmentIfAbsent
public void setObjectAttachmentIfAbsent(String key, Object value)
- 指定者:
setObjectAttachmentIfAbsent在接口中Invocation
-
addAttachments
@Deprecated public void addAttachments(Map<String,String> attachments)
已过时。
-
addAttachmentsIfAbsent
@Deprecated public void addAttachmentsIfAbsent(Map<String,String> attachments)
已过时。
-
addObjectAttachmentsIfAbsent
public void addObjectAttachmentsIfAbsent(Map<String,Object> attachments)
-
getAttachment
public String getAttachment(String key)
从接口复制的说明:Invocationget attachment by key.- 指定者:
getAttachment在接口中Invocation- 返回:
- attachment value.
-
getObjectAttachment
public Object getObjectAttachment(String key)
- 指定者:
getObjectAttachment在接口中Invocation
-
getAttachment
@Deprecated public String getAttachment(String key, String defaultValue)
已过时。从接口复制的说明:Invocationget attachment by key with default value.- 指定者:
getAttachment在接口中Invocation- 返回:
- attachment value.
-
getObjectAttachment
@Deprecated public Object getObjectAttachment(String key, Object defaultValue)
已过时。- 指定者:
getObjectAttachment在接口中Invocation
-
getReturnType
public Class<?> getReturnType()
-
setReturnType
public void setReturnType(Class<?> returnType)
-
getReturnTypes
public Type[] getReturnTypes()
-
setReturnTypes
public void setReturnTypes(Type[] returnTypes)
-
getInvokeMode
public InvokeMode getInvokeMode()
-
setInvokeMode
public void setInvokeMode(InvokeMode invokeMode)
-
-