public class JNDIThreadPoolService extends Object implements BatchThreadPoolService
Modifier and Type | Field and Description |
---|---|
String |
DEFAULT_JNDI_LOCATION |
static String |
THREADPOOL_JNDI_LOCATION |
Constructor and Description |
---|
JNDIThreadPoolService() |
Modifier and Type | Method and Description |
---|---|
void |
executeTask(Runnable work,
Object config)
(Required) Runs the given task.
|
void |
init(Properties batchConfig) |
void |
shutdown() |
public static final String THREADPOOL_JNDI_LOCATION
public final String DEFAULT_JNDI_LOCATION
public void init(Properties batchConfig)
init
in interface BatchService
public void executeTask(Runnable work, Object config)
BatchThreadPoolService
executeTask
in interface BatchThreadPoolService
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.public void shutdown()
shutdown
in interface BatchThreadPoolService
Copyright © 2017 The Apache Software Foundation. All rights reserved.