com.ibm.jbatch.spi.services
Interface IBatchThreadPoolService
- All Superinterfaces:
- IBatchServiceBase
- All Known Implementing Classes:
- AbstractThreadPoolServiceImpl, BoundedThreadPoolServiceImpl, GrowableThreadPoolServiceImpl, JNDIDelegatingThreadPoolServiceImpl, SPIDelegatingThreadPoolServiceImpl
public interface IBatchThreadPoolService
- extends IBatchServiceBase
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.
Copyright © 2013. All Rights Reserved.