com.alibaba.dubbo.rpc
Interface Invocation

All Known Implementing Classes:
DecodeableRpcInvocation, RpcInvocation

public interface Invocation

Invocation. (API, Prototype, NonThreadSafe)

Author:
qian.lei, william.liangf
See Also:
Invoker.invoke(Invocation), RpcInvocation

Method Summary
 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.
 

Method Detail

getMethodName

String getMethodName()
get method name.

Returns:
method name.

getParameterTypes

Class<?>[] getParameterTypes()
get parameter types.

Returns:
parameter types.

getArguments

Object[] getArguments()
get arguments.

Returns:
arguments.

getAttachments

Map<String,String> getAttachments()
get attachments.

Returns:
attachments.

getAttachment

String getAttachment(String key)
get attachment by key.

Returns:
attachment value.

getAttachment

String getAttachment(String key,
                     String defaultValue)
get attachment by key with default value.

Returns:
attachment value.

getInvoker

Invoker<?> getInvoker()
get the invoker in current context.

Returns:
invoker.


Copyright © 2012–2017 Alibaba. All rights reserved.