public interface ActivityTaskHandler
Modifier and Type | Interface and Description |
---|---|
static class |
ActivityTaskHandler.Result |
Modifier and Type | Method and Description |
---|---|
ActivityTaskHandler.Result |
handle(PollForActivityTaskResponse activityTask,
com.uber.m3.tally.Scope metricsScope,
boolean isLocalActivity)
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(PollForActivityTaskResponse activityTask, com.uber.m3.tally.Scope metricsScope, boolean isLocalActivity)
activityTask
- activity task which is response to PollForActivityTask call.boolean isAnyTypeSupported()