Class ActivityTaskHandlerImpl

    • Method Detail

      • registerActivityImplementations

        public void registerActivityImplementations​(java.lang.Object[] activitiesImplementation)
      • handle

        public ActivityTaskHandler.Result handle​(ActivityTask activityTask,
                                                 com.uber.m3.tally.Scope metricsScope,
                                                 boolean localActivity)
        Description copied from interface: ActivityTaskHandler
        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.
        Specified by:
        handle in interface ActivityTaskHandler
        Parameters:
        activityTask - activity task which is response to PollActivityTaskQueue call.
        Returns:
        One of the possible activity task replies.