Class TaskOptions


  • public final class TaskOptions
    extends java.lang.Object
    Options that can be used to control the behavior of orchestrator and activity task execution.
    • Constructor Detail

      • TaskOptions

        public TaskOptions​(RetryPolicy retryPolicy)
        Creates a new TaskOptions object from a RetryPolicy.
        Parameters:
        retryPolicy - the retry policy to use in the new TaskOptions object.
      • TaskOptions

        public TaskOptions​(RetryHandler retryHandler)
        Creates a new TaskOptions object from a RetryHandler.
        Parameters:
        retryHandler - the retry handler to use in the new TaskOptions object.
    • Method Detail

      • getRetryPolicy

        public RetryPolicy getRetryPolicy()
        Gets the configured RetryPolicy value or null if none was configured.
        Returns:
        the configured retry policy
      • getRetryHandler

        public RetryHandler getRetryHandler()
        Gets the configured RetryHandler value or null if none was configured.
        Returns:
        the configured retry handler.