@Deprecated
public class WorkflowTaskCoordinator
extends java.lang.Object
TaskRunnerConfigurer instead.| Modifier and Type | Class and Description |
|---|---|
static class |
WorkflowTaskCoordinator.Builder
Deprecated.
Builder used to create the instances of WorkflowTaskCoordinator
|
| Constructor and Description |
|---|
WorkflowTaskCoordinator(com.netflix.discovery.EurekaClient eurekaClient,
TaskClient taskClient,
int threadCount,
int sleepWhenRetry,
int updateRetryCount,
int workerQueueSize,
java.lang.Iterable<Worker> taskWorkers,
java.lang.String workerNamePrefix)
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getSleepWhenRetry()
Deprecated.
|
int |
getThreadCount()
Deprecated.
|
int |
getUpdateRetryCount()
Deprecated.
|
java.lang.String |
getWorkerNamePrefix()
Deprecated.
|
int |
getWorkerQueueSize()
Deprecated.
|
void |
init()
Deprecated.
Starts the polling.
|
void |
shutdown()
Deprecated.
|
public WorkflowTaskCoordinator(com.netflix.discovery.EurekaClient eurekaClient,
TaskClient taskClient,
int threadCount,
int sleepWhenRetry,
int updateRetryCount,
int workerQueueSize,
java.lang.Iterable<Worker> taskWorkers,
java.lang.String workerNamePrefix)
eurekaClient - Eureka client - used to identify if the server is in discovery or not. When the server goes out of discovery, the polling is terminated. If passed null, discovery check is not done.taskClient - TaskClient used to communicate to the Conductor serverthreadCount - # of threads assigned to the workers. Should be at-least the size of taskWorkers to avoid starvation in a busy system.sleepWhenRetry - sleep time in millisecond for Conductor server retries (poll, ack, update task)updateRetryCount - number of times to retry the failed updateTask operationworkerQueueSize - queue size for the polled task.taskWorkers - workers that will be used for polling work and task execution.workerNamePrefix - String prefix that will be used for all the workers.
Please see init() method. The method must be called after this constructor for the polling to start.
WorkflowTaskCoordinator.Builderpublic void init()
WorkflowTaskCoordinator(EurekaClient, TaskClient, int, int, int, int, Iterable, String)
or the builder WorkflowTaskCoordinator.Builder.build() methodpublic void shutdown()
public int getThreadCount()
public int getWorkerQueueSize()
public int getSleepWhenRetry()
public int getUpdateRetryCount()
public java.lang.String getWorkerNamePrefix()