Package org.apache.dubbo.rpc.support
Class RpcUtils
java.lang.Object
org.apache.dubbo.rpc.support.RpcUtils
RpcUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidattachInvocationIdIfAsync(URL url, Invocation inv) Idempotent operation: invocation id will be added in async operation by defaultstatic intcalculateTimeout(URL url, Invocation invocation, String methodName, long defaultTimeout) static LongconvertToNumber(Object obj) static LongconvertToNumber(Object obj, long defaultTimeout) static Object[]getArguments(Invocation invocation) static Longstatic InvokeModegetInvokeMode(URL url, Invocation inv) static StringgetMethodName(Invocation invocation) static Class<?>[]getParameterTypes(Invocation invocation) static Class<?> getReturnType(Invocation invocation) static Type[]getReturnTypes(Invocation invocation) static longgetTimeout(URL url, String methodName, RpcContext context, Invocation invocation, long defaultTimeout) static longgetTimeout(Invocation invocation, long defaultTimeout) static booleanisAsync(URL url, Invocation inv) static booleanstatic booleanisGenericAsync(Invocation inv) static booleanisGenericCall(String parameterTypesDesc, String method) static booleanisOneway(URL url, Invocation inv) static boolean
-
Constructor Details
-
RpcUtils
public RpcUtils()
-
-
Method Details
-
getReturnType
-
getReturnTypes
-
getInvocationId
-
attachInvocationIdIfAsync
Idempotent operation: invocation id will be added in async operation by default- Parameters:
url-inv-
-
getMethodName
-
getArguments
-
getParameterTypes
-
isAsync
-
isReturnTypeFuture
-
isGenericAsync
-
isGenericCall
-
isEcho
-
getInvokeMode
-
isOneway
-
getTimeout
-
getTimeout
public static long getTimeout(URL url, String methodName, RpcContext context, Invocation invocation, long defaultTimeout) -
calculateTimeout
public static int calculateTimeout(URL url, Invocation invocation, String methodName, long defaultTimeout) -
convertToNumber
-
convertToNumber
-