public abstract class AbstractThreadPoolServiceImpl extends Object implements IBatchThreadPoolService
| Modifier and Type | Field and Description |
|---|---|
protected ExecutorService |
executorService |
| Constructor and Description |
|---|
AbstractThreadPoolServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
ParallelTaskResult |
executeParallelTask(Runnable work,
Object config)
Runs the given task.
|
void |
executeTask(Runnable work,
Object config)
(Required) Runs the given task.
|
abstract void |
init(IBatchConfig pgcConfig) |
void |
shutdown() |
protected ExecutorService executorService
public abstract void init(IBatchConfig pgcConfig) throws BatchContainerServiceException
init in interface IBatchServiceBaseBatchContainerServiceExceptionpublic void shutdown()
throws BatchContainerServiceException
shutdown in interface IBatchServiceBaseBatchContainerServiceExceptionpublic void executeTask(Runnable work, Object config)
IBatchThreadPoolServiceexecuteTask in interface IBatchThreadPoolServicework - 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.public ParallelTaskResult executeParallelTask(Runnable work, Object config)
IBatchThreadPoolServiceexecuteParallelTask in interface IBatchThreadPoolServicework - 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 IBM Corp. 2014
Licensed under the Apache License, Version 2.0