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 BatchServicepublic void executeTask(Runnable work, Object config)
BatchThreadPoolServiceexecuteTask in interface BatchThreadPoolServicework - 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 BatchThreadPoolServiceCopyright © 2022 The Apache Software Foundation. All rights reserved.