Package io.temporal.internal.sync
Class ActivityInvocationHandlerBase
- java.lang.Object
-
- io.temporal.internal.sync.ActivityInvocationHandlerBase
-
- All Implemented Interfaces:
java.lang.reflect.InvocationHandler
- Direct Known Subclasses:
ActivityInvocationHandler
,LocalActivityInvocationHandler
public abstract class ActivityInvocationHandlerBase extends java.lang.Object implements java.lang.reflect.InvocationHandler
Dynamic implementation of a strongly typed activity interface.
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
ActivityInvocationHandlerBase(java.lang.Class<?> activityInterface)
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract java.util.function.Function<java.lang.Object[],java.lang.Object>
getActivityFunc(java.lang.reflect.Method method, MethodRetry methodRetry, java.lang.String activityName)
java.lang.Object
invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
static <T> T
newProxy(java.lang.Class<T> activityInterface, java.lang.reflect.InvocationHandler invocationHandler)
-
-
-
Method Detail
-
newProxy
public static <T> T newProxy(java.lang.Class<T> activityInterface, java.lang.reflect.InvocationHandler invocationHandler)
-
invoke
public java.lang.Object invoke(java.lang.Object proxy, java.lang.reflect.Method method, java.lang.Object[] args)
- Specified by:
invoke
in interfacejava.lang.reflect.InvocationHandler
-
getActivityFunc
protected abstract java.util.function.Function<java.lang.Object[],java.lang.Object> getActivityFunc(java.lang.reflect.Method method, MethodRetry methodRetry, java.lang.String activityName)
-
-