T - Type of Node/Task IDR - Type of Node/Task resultpublic class DexecutorConfig<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 | 
|---|
DexecutorConfig(ExecutionEngine<T,R> executor,
               TaskProvider<T,R> taskProvider)
Construct the object with mandatory params, rest are optional 
 | 
DexecutorConfig(ExecutorService executorService,
               TaskProvider<T,R> taskProvider)
Construct the object with mandatory params, rest are optional 
 | 
| Modifier and Type | Method and Description | 
|---|---|
DexecutorState<T,R> | 
getDexecutorState()  | 
int | 
getImmediateRetryPoolThreadsCount()  | 
int | 
getScheduledRetryPoolThreadsCount()  | 
void | 
setDexecutorState(DexecutorState<T,R> dexecutorState)  | 
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 DexecutorConfig(ExecutorService executorService, TaskProvider<T,R> taskProvider)
executorService - @ExecutorServicetaskProvider - @TaskProviderpublic DexecutorConfig(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 - public DexecutorState<T,R> getDexecutorState()
public void setDexecutorState(DexecutorState<T,R> dexecutorState)
Copyright © 2016 Dexecutor. All rights reserved.