Package com.ibm.jbatch.spi.services
Interface IBatchThreadPoolService
-
- All Superinterfaces:
IBatchServiceBase
- All Known Implementing Classes:
AbstractThreadPoolServiceImpl,BoundedThreadPoolServiceImpl,GrowableThreadPoolServiceImpl,JNDIDelegatingThreadPoolServiceImpl,SPIDelegatingThreadPoolServiceImpl
public interface IBatchThreadPoolService extends IBatchServiceBase
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ParallelTaskResultexecuteParallelTask(Runnable work, Object config)Runs the given task.voidexecuteTask(Runnable work, Object config)(Required) Runs the given task.-
Methods inherited from interface com.ibm.jbatch.spi.services.IBatchServiceBase
init, shutdown
-
-
-
-
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.
-
executeParallelTask
ParallelTaskResult executeParallelTask(Runnable work, Object config)
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.
-
-