public interface ActivityTaskHandler
Modifier and Type | Interface and Description |
---|---|
static class |
ActivityTaskHandler.Result |
Modifier and Type | Method and Description |
---|---|
ActivityTaskHandler.Result |
handle(java.lang.String taskList,
PollForActivityTaskResponse activityTask,
com.uber.m3.tally.Scope metricsScope)
The implementation should be called when a polling activity worker receives a new activity
task.
|
boolean |
isAnyTypeSupported()
True if this handler handles at least one activity type.
|
ActivityTaskHandler.Result handle(java.lang.String taskList, PollForActivityTaskResponse activityTask, com.uber.m3.tally.Scope metricsScope)
activityTask
- activity task which is response to PollForActivityTask call.boolean isAnyTypeSupported()