类 RpcUtils


  • public class RpcUtils
    extends Object
    RpcUtils
    • 构造器详细资料

      • RpcUtils

        public RpcUtils()
    • 方法详细资料

      • 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)
        Idempotent operation: invocation id will be added in async operation by default
        参数:
        url -
        inv -
      • 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)