public class ReflectionUtil extends Object
| Constructor and Description |
|---|
ReflectionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static Object |
invokeCount(String methodName,
Object obj,
Class<?> objClass,
int invokeMaxCount)
A reflection Invoke method with Retries for SocketException, InternalApiError
and RateExceededError with getRetryAfterSeconds sleep.
|
static Object |
invokeCount(String methodName,
Object obj,
Class<?> objClass,
Object args,
Class<?> argsClass,
int invokeMaxCount)
A reflection Invoke method with Retries for SocketException, InternalApiError
and RateExceededError with getRetryAfterSeconds sleep.
|
static Object |
invokeCount(String methodName,
Object obj,
Class<?> objClass,
Object args,
int invokeMaxCount)
A reflection Invoke method with Retries for SocketException, InternalApiError
and RateExceededError with getRetryAfterSeconds sleep.
|
public static Object invokeCount(String methodName, Object obj, Class<?> objClass, int invokeMaxCount) throws RemoteException
methodName - obj - the object the underlying method is invoked fromobjClass - the class of the object the underlying method is invoked frominvokeMaxCount - number of maximum callsRemoteException - for communication-related exceptionspublic static Object invokeCount(String methodName, Object obj, Class<?> objClass, Object args, int invokeMaxCount) throws RemoteException
methodName - obj - the object the underlying method is invoked fromobjClass - the class of the object the underlying method is invoked fromargs - the arguments used for the method callinvokeMaxCount - number of maximum callsRemoteException - for communication-related exceptionspublic static Object invokeCount(String methodName, Object obj, Class<?> objClass, Object args, Class<?> argsClass, int invokeMaxCount) throws RemoteException
methodName - obj - the object the underlying method is invoked fromobjClass - the class of the object the underlying method is invoked fromargs - the arguments used for the method callargsClass - the arguments Class used for the method callinvokeMaxCount - the max number of callsRemoteException - for communication-related exceptionsCopyright © 2015. All Rights Reserved.