com.ibm.batch.container.services
Interface IBatchThreadPoolService

All Superinterfaces:
IBatchServiceBase
All Known Implementing Classes:
AbstractThreadPoolServiceImpl, GlassfishThreadPoolServiceImpl, JSEThreadPoolServiceImpl

public interface IBatchThreadPoolService
extends IBatchServiceBase


Method Summary
 ParallelTaskResult executeParallelTask(BatchWorkUnit work, Object config)
          Runs the given task.
 void executeTask(BatchWorkUnit work, Object config)
          (Required) Runs the given task.
 
Methods inherited from interface com.ibm.batch.container.services.IBatchServiceBase
init, shutdown
 

Method Detail

executeTask

void executeTask(BatchWorkUnit work,
                 Object config)
(Required) Runs the given task. A task is usually short lived

Parameters:
work - The task to execute
config - 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(BatchWorkUnit work,
                                       Object config)
Runs the given task. A task is usually short lived

Parameters:
work - The task to execute
config - 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.