|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.alibaba.dubbo.rpc.RpcInvocation
public class RpcInvocation
RPC Invocation.
Constructor Summary | |
---|---|
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)
|
Method Summary | |
---|---|
void |
addAttachments(Map<String,String> attachments)
|
void |
addAttachmentsIfAbsent(Map<String,String> attachments)
|
Object[] |
getArguments()
get arguments. |
String |
getAttachment(String key)
get attachment by key. |
String |
getAttachment(String key,
String defaultValue)
get attachment by key with default value. |
Map<String,String> |
getAttachments()
get attachments. |
Invoker<?> |
getInvoker()
get the invoker in current context. |
String |
getMethodName()
get method name. |
Class<?>[] |
getParameterTypes()
get parameter types. |
void |
setArguments(Object[] arguments)
|
void |
setAttachment(String key,
String value)
|
void |
setAttachmentIfAbsent(String key,
String value)
|
void |
setAttachments(Map<String,String> attachments)
|
void |
setInvoker(Invoker<?> invoker)
|
void |
setMethodName(String methodName)
|
void |
setParameterTypes(Class<?>[] parameterTypes)
|
String |
toString()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public RpcInvocation()
public RpcInvocation(Invocation invocation, Invoker<?> invoker)
public RpcInvocation(Invocation invocation)
public RpcInvocation(Method method, Object[] arguments)
public RpcInvocation(Method method, Object[] arguments, Map<String,String> attachment)
public RpcInvocation(String methodName, Class<?>[] parameterTypes, Object[] arguments)
public RpcInvocation(String methodName, Class<?>[] parameterTypes, Object[] arguments, Map<String,String> attachments)
public RpcInvocation(String methodName, Class<?>[] parameterTypes, Object[] arguments, Map<String,String> attachments, Invoker<?> invoker)
Method Detail |
---|
public Invoker<?> getInvoker()
Invocation
getInvoker
in interface Invocation
public void setInvoker(Invoker<?> invoker)
public String getMethodName()
Invocation
getMethodName
in interface Invocation
public void setMethodName(String methodName)
public Class<?>[] getParameterTypes()
Invocation
getParameterTypes
in interface Invocation
public void setParameterTypes(Class<?>[] parameterTypes)
public Object[] getArguments()
Invocation
getArguments
in interface Invocation
public void setArguments(Object[] arguments)
public Map<String,String> getAttachments()
Invocation
getAttachments
in interface Invocation
public void setAttachments(Map<String,String> attachments)
public void setAttachment(String key, String value)
public void setAttachmentIfAbsent(String key, String value)
public void addAttachments(Map<String,String> attachments)
public void addAttachmentsIfAbsent(Map<String,String> attachments)
public String getAttachment(String key)
Invocation
getAttachment
in interface Invocation
public String getAttachment(String key, String defaultValue)
Invocation
getAttachment
in interface Invocation
public String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |