public class RpcInvocation extends Object implements Invocation, Serializable
| 构造器和说明 |
|---|
RpcInvocation() |
RpcInvocation(Invocation invocation) |
RpcInvocation(Invocation invocation,
Invoker<?> invoker) |
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) |
public RpcInvocation()
public RpcInvocation(Invocation invocation, Invoker<?> invoker)
public RpcInvocation(Invocation invocation)
public RpcInvocation(Method method, String serviceName, String protocolServiceKey, Object[] arguments)
public RpcInvocation(Method method, String serviceName, String protocolServiceKey, Object[] arguments, Map<String,Object> attachment, Map<Object,Object> attributes)
public RpcInvocation(String methodName, String serviceName, String protocolServiceKey, Class<?>[] parameterTypes, Object[] arguments)
public RpcInvocation(String methodName, String serviceName, String protocolServiceKey, Class<?>[] parameterTypes, Object[] arguments, Map<String,Object> attachments)
public Invoker<?> getInvoker()
InvocationgetInvoker 在接口中 Invocationpublic void setInvoker(Invoker<?> invoker)
public Object put(Object key, Object value)
put 在接口中 Invocationpublic Object get(Object key)
get 在接口中 Invocationpublic Map<Object,Object> getAttributes()
getAttributes 在接口中 Invocationpublic String getTargetServiceUniqueName()
getTargetServiceUniqueName 在接口中 Invocationpublic String getProtocolServiceKey()
getProtocolServiceKey 在接口中 Invocationpublic void setTargetServiceUniqueName(String targetServiceUniqueName)
public String getMethodName()
InvocationgetMethodName 在接口中 Invocationpublic String getServiceName()
InvocationgetServiceName 在接口中 Invocationpublic void setServiceName(String serviceName)
public void setMethodName(String methodName)
public Class<?>[] getParameterTypes()
InvocationgetParameterTypes 在接口中 Invocationpublic void setParameterTypes(Class<?>[] parameterTypes)
public String getParameterTypesDesc()
public void setParameterTypesDesc(String parameterTypesDesc)
public String[] getCompatibleParamSignatures()
InvocationgetCompatibleParamSignatures 在接口中 Invocationpublic void setCompatibleParamSignatures(String[] compatibleParamSignatures)
public Object[] getArguments()
InvocationgetArguments 在接口中 Invocationpublic void setArguments(Object[] arguments)
public Map<String,Object> getObjectAttachments()
getObjectAttachments 在接口中 Invocationpublic void setAttachment(String key, String value)
setAttachment 在接口中 Invocation@Deprecated public Map<String,String> getAttachments()
InvocationgetAttachments 在接口中 Invocation@Deprecated public void setAttachments(Map<String,String> attachments)
public void setAttachment(String key, Object value)
setAttachment 在接口中 Invocationpublic void setObjectAttachment(String key, Object value)
setObjectAttachment 在接口中 Invocationpublic void setAttachmentIfAbsent(String key, String value)
setAttachmentIfAbsent 在接口中 Invocationpublic void setAttachmentIfAbsent(String key, Object value)
setAttachmentIfAbsent 在接口中 Invocationpublic void setObjectAttachmentIfAbsent(String key, Object value)
setObjectAttachmentIfAbsent 在接口中 Invocation@Deprecated public void addAttachments(Map<String,String> attachments)
@Deprecated public void addAttachmentsIfAbsent(Map<String,String> attachments)
public void addObjectAttachmentsIfAbsent(Map<String,Object> attachments)
public String getAttachment(String key)
InvocationgetAttachment 在接口中 Invocationpublic Object getObjectAttachment(String key)
getObjectAttachment 在接口中 Invocation@Deprecated public String getAttachment(String key, String defaultValue)
InvocationgetAttachment 在接口中 Invocation@Deprecated public Object getObjectAttachment(String key, Object defaultValue)
getObjectAttachment 在接口中 Invocationpublic Class<?> getReturnType()
public void setReturnType(Class<?> returnType)
public Type[] getReturnTypes()
public void setReturnTypes(Type[] returnTypes)
public InvokeMode getInvokeMode()
public void setInvokeMode(InvokeMode invokeMode)
Copyright © 2011–2021 The Apache Software Foundation. All rights reserved.