Class TaskRunnerConfigurer
java.lang.Object
com.netflix.conductor.client.automator.TaskRunnerConfigurer
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder used to create the instances of TaskRunnerConfigurer -
Method Summary
-
Method Details
-
getThreadCount
Deprecated.- Returns:
- Thread Count for the shared executor pool
-
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
- Returns:
- prefix used for worker names
-
init
public void init()Starts the polling. Must be called afterTaskRunnerConfigurer.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.
-