Interface ActivityInfo

    • Method Detail

      • getWorkflowId

        java.lang.String getWorkflowId()
        Returns:
        WorkflowId of the Workflow Execution that scheduled the Activity Execution.
      • getRunId

        java.lang.String getRunId()
        Returns:
        RunId of the Workflow Execution that scheduled the Activity Execution.
      • getActivityType

        java.lang.String getActivityType()
        Returns:
        type of the Activity.
      • getScheduledTimestamp

        long getScheduledTimestamp()
        Time when the Activity Execution was initially scheduled by the Workflow Execution.
        Returns:
        Timestamp in milliseconds (UNIX Epoch time)
      • getCurrentAttemptScheduledTimestamp

        long getCurrentAttemptScheduledTimestamp()
        Time when the Activity Task (current attempt) was scheduled by the Temporal Server.
        Returns:
        Timestamp in milliseconds (UNIX Epoch time)
      • getScheduleToCloseTimeout

        java.time.Duration getScheduleToCloseTimeout()
        Returns:
        the Schedule-To-Close Timeout setting as a Duration.
      • getStartToCloseTimeout

        java.time.Duration getStartToCloseTimeout()
        Returns:
        the Start-To-Close Timeout setting as a Duration.
      • getHeartbeatTimeout

        @Nonnull
        java.time.Duration getHeartbeatTimeout()
        Returns:
        the Heartbeat Timeout setting as a Duration. Duration.ZERO if absent
      • getHeartbeatDetails

        java.util.Optional<io.temporal.api.common.v1.Payloads> getHeartbeatDetails()
      • getWorkflowType

        java.lang.String getWorkflowType()
        Returns:
        the Workflow Type of the Workflow Execution that executed the Activity.
      • getWorkflowNamespace

        java.lang.String getWorkflowNamespace()
        Returns:
        the Namespace of Workflow Execution that executed the Activity.
      • getActivityNamespace

        java.lang.String getActivityNamespace()
        Returns:
        the Namespace of the Activity Execution.
      • getAttempt

        int getAttempt()
        Gets the current Activity Execution attempt count. Attempt counts start at 1 and increment on each Activity Task Execution retry.
      • isLocal

        boolean isLocal()
        Used to determine if the Activity Execution is a local Activity.