com.alibaba.dubbo.rpc.support
Class RpcUtils

java.lang.Object
  extended by com.alibaba.dubbo.rpc.support.RpcUtils

public class RpcUtils
extends Object

RpcUtils

Author:
william.liangf, chao.liuc

Constructor Summary
RpcUtils()
           
 
Method Summary
static void attachInvocationIdIfAsync(URL url, Invocation inv)
          幂等操作:异步操作默认添加invocation id
static Object[] getArguments(Invocation invocation)
           
static Long getInvocationId(Invocation inv)
           
static String getMethodName(Invocation invocation)
           
static Class<?>[] getParameterTypes(Invocation invocation)
           
static Class<?> getReturnType(Invocation invocation)
           
static Type[] getReturnTypes(Invocation invocation)
           
static boolean isAsync(URL url, Invocation inv)
           
static boolean isOneway(URL url, Invocation inv)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RpcUtils

public RpcUtils()
Method Detail

getReturnType

public static Class<?> getReturnType(Invocation invocation)

getReturnTypes

public static Type[] getReturnTypes(Invocation invocation)

getInvocationId

public static Long getInvocationId(Invocation inv)

attachInvocationIdIfAsync

public static void attachInvocationIdIfAsync(URL url,
                                             Invocation inv)
幂等操作:异步操作默认添加invocation id

Parameters:
url -
inv -

getMethodName

public static String getMethodName(Invocation invocation)

getArguments

public static Object[] getArguments(Invocation invocation)

getParameterTypes

public static Class<?>[] getParameterTypes(Invocation invocation)

isAsync

public static boolean isAsync(URL url,
                              Invocation inv)

isOneway

public static boolean isOneway(URL url,
                               Invocation inv)


Copyright © 2012–2017 Alibaba. All rights reserved.