Package com.uber.cadence.activity
Annotation Type ActivityMethod
-
@Retention(RUNTIME) @Target(METHOD) public @interface ActivityMethod
Indicates that the method is an activity method. This annotation applies only to activity interface methods. Not required. Use it to override default activity type name or other options. When bothActivityOptions
andActivityMethod
have non default value for some parameter theActivityOptions
one takes precedence.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description int
heartbeatTimeoutSeconds
Heartbeat interval.java.lang.String
name
Name of the workflow type.int
scheduleToCloseTimeoutSeconds
Overall timeout workflow is willing to wait for activity to complete.int
scheduleToStartTimeoutSeconds
Time activity can stay in task list before it is picked up by a worker.int
startToCloseTimeoutSeconds
Maximum activity execution time after it was sent to a worker.java.lang.String
taskList
Task list to use when dispatching activity task to a worker.
-
-
-
-
scheduleToCloseTimeoutSeconds
int scheduleToCloseTimeoutSeconds
Overall timeout workflow is willing to wait for activity to complete. It includes time in a task list (usescheduleToStartTimeoutSeconds()
to limit it) plus activity execution time (usestartToCloseTimeoutSeconds()
to limit it). Either this option or both schedule to start and start to close are required.- Default:
- 0
-
-