T
- Type of Node/Task IDR
- Type of Node/Task resultpublic class DependentTasksExecutorConfig<T extends Comparable<T>,R> extends Object
Configuration Object for Dexecutor framework. At a minimum it needs ExecutorService
and TaskProvider
, rest are optional and takes default values
This provides way to hook in your own Validator
and Traversar
Constructor and Description |
---|
DependentTasksExecutorConfig(ExecutionEngine<T,R> executor,
TaskProvider<T,R> taskProvider)
Construct the object with mandatory params, rest are optional
|
DependentTasksExecutorConfig(ExecutorService executorService,
TaskProvider<T,R> taskProvider)
Construct the object with mandatory params, rest are optional
|
Modifier and Type | Method and Description |
---|---|
int |
getImmediateRetryPoolThreadsCount() |
int |
getScheduledRetryPoolThreadsCount() |
void |
setImmediateRetryPoolThreadsCount(int immediateRetryPoolThreadsCount)
sets the immediate retry thread pool size to that of specified
|
void |
setScheduledRetryPoolThreadsCount(int scheduledRetryPoolThreadsCount)
sets the scheduled thread pool size to that of specified
|
void |
setTraversar(Traversar<T,R> traversar)
Change the traversar to that of specified
|
void |
setValidator(Validator<T,R> validator)
change the validator to that of specified
|
public DependentTasksExecutorConfig(ExecutorService executorService, TaskProvider<T,R> taskProvider)
executorService
- @ExecutorServicetaskProvider
- @TaskProviderpublic DependentTasksExecutorConfig(ExecutionEngine<T,R> executor, TaskProvider<T,R> taskProvider)
executor
- @ExecutionEnginetaskProvider
- @TaskProviderpublic void setValidator(Validator<T,R> validator)
validator
- public void setTraversar(Traversar<T,R> traversar)
traversar
- public int getImmediateRetryPoolThreadsCount()
public void setImmediateRetryPoolThreadsCount(int immediateRetryPoolThreadsCount)
immediateRetryPoolThreadsCount
- public int getScheduledRetryPoolThreadsCount()
public void setScheduledRetryPoolThreadsCount(int scheduledRetryPoolThreadsCount)
scheduledRetryPoolThreadsCount
- Copyright © 2016 Dexecutor. All rights reserved.