类 RpcInvocation
- java.lang.Object
-
- com.alibaba.dubbo.rpc.RpcInvocation
-
- 所有已实现的接口:
Invocation,Serializable,org.apache.dubbo.rpc.Invocation
public class RpcInvocation extends Object implements Invocation, Serializable
- 另请参阅:
- 序列化表格
-
-
嵌套类概要
-
从接口继承的嵌套类/接口 com.alibaba.dubbo.rpc.Invocation
Invocation.CompatibleInvocation
-
-
构造器概要
构造器 构造器 说明 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)Object[]getArguments()StringgetAttachment(String key)StringgetAttachment(String key, String defaultValue)Map<String,String>getAttachments()Invoker<?>getInvoker()StringgetMethodName()Class<?>[]getParameterTypes()StringgetProtocolServiceKey()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()-
从接口继承的方法 com.alibaba.dubbo.rpc.Invocation
get, getAttributes, getObjectAttachment, getObjectAttachment, getObjectAttachments, getOriginal, getServiceName, getTargetServiceUniqueName, put, setAttachment, setAttachmentIfAbsent, setObjectAttachment, setObjectAttachmentIfAbsent
-
-
-
-
构造器详细资料
-
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()
- 指定者:
getInvoker在接口中Invocation- 指定者:
getInvoker在接口中org.apache.dubbo.rpc.Invocation
-
setInvoker
public void setInvoker(Invoker<?> invoker)
-
getProtocolServiceKey
public String getProtocolServiceKey()
- 指定者:
getProtocolServiceKey在接口中org.apache.dubbo.rpc.Invocation
-
getMethodName
public String getMethodName()
- 指定者:
getMethodName在接口中org.apache.dubbo.rpc.Invocation
-
setMethodName
public void setMethodName(String methodName)
-
getParameterTypes
public Class<?>[] getParameterTypes()
- 指定者:
getParameterTypes在接口中org.apache.dubbo.rpc.Invocation
-
setParameterTypes
public void setParameterTypes(Class<?>[] parameterTypes)
-
getArguments
public Object[] getArguments()
- 指定者:
getArguments在接口中org.apache.dubbo.rpc.Invocation
-
setArguments
public void setArguments(Object[] arguments)
-
getAttachments
public Map<String,String> getAttachments()
- 指定者:
getAttachments在接口中org.apache.dubbo.rpc.Invocation
-
setAttachment
public void setAttachment(String key, String value)
- 指定者:
setAttachment在接口中Invocation- 指定者:
setAttachment在接口中org.apache.dubbo.rpc.Invocation
-
setAttachmentIfAbsent
public void setAttachmentIfAbsent(String key, String value)
- 指定者:
setAttachmentIfAbsent在接口中Invocation- 指定者:
setAttachmentIfAbsent在接口中org.apache.dubbo.rpc.Invocation
-
getAttachment
public String getAttachment(String key)
- 指定者:
getAttachment在接口中org.apache.dubbo.rpc.Invocation
-
getAttachment
public String getAttachment(String key, String defaultValue)
- 指定者:
getAttachment在接口中Invocation- 指定者:
getAttachment在接口中org.apache.dubbo.rpc.Invocation
-
-