Class TaskTideExecutorServiceProvider
java.lang.Object
org.tasktide.engine.workerunit.provider.TaskTideExecutorServiceProvider
-
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutorServiceStatic accessor for convenience forWorkItemexectuor serviceGet configuredExecutorServiceforWorkItemprocessingintThread pool size forWorkItemexecutorProvides the executor if initializedGet configuredExecutorServiceforItemTaskprocessingintThread pool size forItemTaskexecutorstatic voidinitialize(int engineWorkerThreads, int itemTaskThreads) Initialize executor services for provided pool sizesbooleanChecks whether service provider is parallelizedstatic ExecutorServiceStatic accessor for convenience forItemTaskexectuor servicestatic voidreset()Reset the engine worker unit container for testing
-
Method Details
-
initialize
public static void initialize(int engineWorkerThreads, int itemTaskThreads) Initialize executor services for provided pool sizes- Parameters:
engineWorkerThreads-itemTaskThreads-
-
getInstance
Provides the executor if initialized- Returns:
- TaskTideExecutorServiceProvider
-
getEngineWorkerExecutorService
Get configuredExecutorServiceforWorkItemprocessing- Returns:
ExecutorService
-
getItemTaskExecutorService
Get configuredExecutorServiceforItemTaskprocessing- Returns:
ExecutorService
-
engineWorkerExecutorService
Static accessor for convenience forWorkItemexectuor service- Returns:
- ExecutorService
-
itemTaskExecutorService
Static accessor for convenience forItemTaskexectuor service- Returns:
- ExecutorService
-
getEngineWorkerThreads
-
getItemTaskThreads
-
isParallelized
public boolean isParallelized()Checks whether service provider is parallelized- Returns:
- boolean
-
reset
public static void reset()Reset the engine worker unit container for testing
-