Package org.apache.batchee.spi
Interface BatchThreadPoolService
-
- All Superinterfaces:
BatchService
- All Known Implementing Classes:
AbstractThreadPoolService,AsyncEjbBatchThreadPoolService,BoundedThreadPoolService,DefaultThreadPoolService,JNDIThreadPoolService
public interface BatchThreadPoolService extends BatchService
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidexecuteTask(Runnable work, Object config)(Required) Runs the given task.voidshutdown()-
Methods inherited from interface org.apache.batchee.spi.BatchService
init
-
-
-
-
Method Detail
-
executeTask
void executeTask(Runnable work, Object config)
(Required) Runs the given task. A task is usually short lived- Parameters:
work- The task to executeconfig- Optional configuration to customize the execution. The Container always passes a null value. Typically used when other user plugins wish to use the ExecutorService to execute tasks.
-
shutdown
void shutdown()
-
-