Interface ActivityTaskHandler


  • public interface ActivityTaskHandler
    Interface of an activity task handler.
    • Method Detail

      • handle

        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. This method shouldn't throw any exception unless there is a need to not reply to the task.
        Parameters:
        activityTask - activity task which is response to PollForActivityTask call.
        Returns:
        One of the possible decision task replies.
      • isAnyTypeSupported

        boolean isAnyTypeSupported()
        True if this handler handles at least one activity type.