public class RpcInvocation extends Object implements Invocation, Serializable
| 构造器和说明 |
|---|
RpcInvocation()
已过时。
only for test
|
RpcInvocation(Invocation invocation)
Deep clone of an invocation
|
RpcInvocation(Invocation invocation,
Invoker<?> invoker)
Deep clone of an invocation & put some service params into attachment from invoker (will not change the invoker in invocation)
|
RpcInvocation(Method method,
String interfaceName,
String protocolServiceKey,
Object[] arguments)
已过时。
deprecated, will be removed in 3.1.x
|
RpcInvocation(Method method,
String interfaceName,
String protocolServiceKey,
Object[] arguments,
Map<String,Object> attachment,
Map<Object,Object> attributes)
已过时。
deprecated, will be removed in 3.1.x
|
RpcInvocation(ServiceModel serviceModel,
Method method,
String interfaceName,
String protocolServiceKey,
Object[] arguments)
已过时。
deprecated, will be removed in 3.1.x
|
RpcInvocation(ServiceModel serviceModel,
Method method,
String interfaceName,
String protocolServiceKey,
Object[] arguments,
Map<String,Object> attachment,
Map<Object,Object> attributes)
已过时。
deprecated, will be removed in 3.1.x
|
RpcInvocation(ServiceModel serviceModel,
String methodName,
String interfaceName,
String protocolServiceKey,
Class<?>[] parameterTypes,
Object[] arguments)
To create a brand-new invocation
|
RpcInvocation(ServiceModel serviceModel,
String methodName,
String interfaceName,
String protocolServiceKey,
Class<?>[] parameterTypes,
Object[] arguments,
Map<String,Object> attachments)
已过时。
deprecated, will be removed in 3.1.x
|
RpcInvocation(ServiceModel serviceModel,
String methodName,
String interfaceName,
String protocolServiceKey,
Class<?>[] parameterTypes,
Object[] arguments,
Map<String,Object> attachments,
Invoker<?> invoker,
Map<Object,Object> attributes)
已过时。
deprecated, will be removed in 3.1.x
|
RpcInvocation(ServiceModel serviceModel,
String methodName,
String interfaceName,
String protocolServiceKey,
Class<?>[] parameterTypes,
Object[] arguments,
Map<String,Object> attachments,
Invoker<?> invoker,
Map<Object,Object> attributes,
InvokeMode invokeMode)
已过时。
deprecated, will be removed in 3.1.x
|
RpcInvocation(String targetServiceUniqueName,
ServiceModel serviceModel,
String methodName,
String interfaceName,
String protocolServiceKey,
Class<?>[] parameterTypes,
Object[] arguments,
Map<String,Object> attachments,
Invoker<?> invoker,
Map<Object,Object> attributes,
InvokeMode invokeMode)
To create a brand-new invocation
|
RpcInvocation(String methodName,
String interfaceName,
String protocolServiceKey,
Class<?>[] parameterTypes,
Object[] arguments)
已过时。
deprecated, will be removed in 3.1.x
|
RpcInvocation(String methodName,
String interfaceName,
String protocolServiceKey,
Class<?>[] parameterTypes,
Object[] arguments,
Map<String,Object> attachments)
已过时。
deprecated, will be removed in 3.1.x
|
RpcInvocation(String methodName,
String interfaceName,
String protocolServiceKey,
Class<?>[] parameterTypes,
Object[] arguments,
Map<String,Object> attachments,
Invoker<?> invoker,
Map<Object,Object> attributes)
已过时。
deprecated, will be removed in 3.1.x
|
getModuleModel@Deprecated public RpcInvocation()
public RpcInvocation(Invocation invocation)
invocation - original invocationpublic RpcInvocation(Invocation invocation, Invoker<?> invoker)
invocation - original invocationinvoker - target invokerpublic RpcInvocation(ServiceModel serviceModel, String methodName, String interfaceName, String protocolServiceKey, Class<?>[] parameterTypes, Object[] arguments)
@Deprecated public RpcInvocation(ServiceModel serviceModel, Method method, String interfaceName, String protocolServiceKey, Object[] arguments)
@Deprecated public RpcInvocation(Method method, String interfaceName, String protocolServiceKey, Object[] arguments)
@Deprecated public RpcInvocation(ServiceModel serviceModel, Method method, String interfaceName, String protocolServiceKey, Object[] arguments, Map<String,Object> attachment, Map<Object,Object> attributes)
@Deprecated public RpcInvocation(Method method, String interfaceName, String protocolServiceKey, Object[] arguments, Map<String,Object> attachment, Map<Object,Object> attributes)
@Deprecated public RpcInvocation(String methodName, String interfaceName, String protocolServiceKey, Class<?>[] parameterTypes, Object[] arguments)
@Deprecated public RpcInvocation(ServiceModel serviceModel, String methodName, String interfaceName, String protocolServiceKey, Class<?>[] parameterTypes, Object[] arguments, Map<String,Object> attachments)
@Deprecated public RpcInvocation(String methodName, String interfaceName, String protocolServiceKey, Class<?>[] parameterTypes, Object[] arguments, Map<String,Object> attachments)
@Deprecated public RpcInvocation(String methodName, String interfaceName, String protocolServiceKey, Class<?>[] parameterTypes, Object[] arguments, Map<String,Object> attachments, Invoker<?> invoker, Map<Object,Object> attributes)
@Deprecated public RpcInvocation(ServiceModel serviceModel, String methodName, String interfaceName, String protocolServiceKey, Class<?>[] parameterTypes, Object[] arguments, Map<String,Object> attachments, Invoker<?> invoker, Map<Object,Object> attributes)
@Deprecated public RpcInvocation(ServiceModel serviceModel, String methodName, String interfaceName, String protocolServiceKey, Class<?>[] parameterTypes, Object[] arguments, Map<String,Object> attachments, Invoker<?> invoker, Map<Object,Object> attributes, InvokeMode invokeMode)
public RpcInvocation(String targetServiceUniqueName, ServiceModel serviceModel, String methodName, String interfaceName, String protocolServiceKey, Class<?>[] parameterTypes, Object[] arguments, Map<String,Object> attachments, Invoker<?> invoker, Map<Object,Object> attributes, InvokeMode invokeMode)
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 void addInvokedInvoker(Invoker<?> invoker)
InvocationaddInvokedInvoker 在接口中 Invocationinvoker - invoked invokerspublic List<Invoker<?>> getInvokedInvokers()
InvocationgetInvokedInvokers 在接口中 Invocationpublic String getTargetServiceUniqueName()
getTargetServiceUniqueName 在接口中 Invocationpublic void setTargetServiceUniqueName(String targetServiceUniqueName)
public String getProtocolServiceKey()
getProtocolServiceKey 在接口中 Invocationpublic String getMethodName()
InvocationgetMethodName 在接口中 Invocationpublic void setMethodName(String methodName)
public String getServiceName()
InvocationgetServiceName 在接口中 Invocationpublic void setServiceName(String interfaceName)
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 Map<String,Object> copyObjectAttachments()
copyObjectAttachments 在接口中 Invocationpublic void foreachAttachment(Consumer<Map.Entry<String,Object>> consumer)
foreachAttachment 在接口中 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)
@Deprecated 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 Object getObjectAttachmentWithoutConvert(String key)
getObjectAttachmentWithoutConvert 在接口中 Invocationpublic Class<?> getReturnType()
public void setReturnType(Class<?> returnType)
public Type[] getReturnTypes()
public void setReturnTypes(Type[] returnTypes)
public InvokeMode getInvokeMode()
public void setInvokeMode(InvokeMode invokeMode)
public void setServiceModel(ServiceModel serviceModel)
setServiceModel 在接口中 Invocationpublic ServiceModel getServiceModel()
getServiceModel 在接口中 InvocationCopyright © 2011–2020 The Apache Software Foundation. All rights reserved.