Class TaskRunnerConfigurer

java.lang.Object
com.netflix.conductor.client.automator.TaskRunnerConfigurer

public class TaskRunnerConfigurer extends Object
  • Method Details

    • getThreadCount

      @Deprecated public int getThreadCount()
      Deprecated.
      Returns:
      Thread Count for the shared executor pool
    • getTaskThreadCount

      public Map<String,Integer> getTaskThreadCount()
      Returns:
      Thread Count for individual task type
    • getShutdownGracePeriodSeconds

      public int getShutdownGracePeriodSeconds()
      Returns:
      seconds before forcing shutdown of worker
    • getSleepWhenRetry

      public int getSleepWhenRetry()
      Returns:
      sleep time in millisecond before task update retry is done when receiving error from the Conductor server
    • getUpdateRetryCount

      public int getUpdateRetryCount()
      Returns:
      Number of times updateTask should be retried when receiving error from Conductor server
    • getWorkerNamePrefix

      public String getWorkerNamePrefix()
      Returns:
      prefix used for worker names
    • init

      public void init()
      Starts the polling. Must be called after TaskRunnerConfigurer.Builder.build() method.
    • shutdown

      public void shutdown()
      Invoke this method within a PreDestroy block within your application to facilitate a graceful shutdown of your worker, during process termination.