public class GlassFishWorkManagerTaskExecutor extends WorkManagerTaskExecutor
This is the GlassFish equivalent of the CommonJ
org.springframework.scheduling.commonj.WorkManagerTaskExecutor
adapter for WebLogic and WebSphere.
Note: On GlassFish 4 and higher, a
org.springframework.scheduling.concurrent.DefaultManagedTaskExecutor
should be preferred, following JSR-236 support in Java EE 7.
TIMEOUT_IMMEDIATE, TIMEOUT_INDEFINITEIMMEDIATE, INDEFINITE, UNKNOWN| Constructor and Description |
|---|
GlassFishWorkManagerTaskExecutor() |
| Modifier and Type | Method and Description |
|---|---|
protected WorkManager |
getDefaultWorkManager()
Obtains GlassFish's default thread pool.
|
void |
setThreadPoolName(java.lang.String threadPoolName)
Identify a specific GlassFish thread pool to talk to.
|
afterPropertiesSet, doWork, doWork, execute, execute, prefersShortLivedTasks, scheduleWork, scheduleWork, setBlockUntilCompleted, setBlockUntilStarted, setBootstrapContext, setTaskDecorator, setWorkListener, setWorkManager, setWorkManagerName, startWork, startWork, submit, submit, submitListenable, submitListenableconvertJndiName, isResourceRef, lookup, lookup, setResourceRefpublic void setThreadPoolName(java.lang.String threadPoolName)
The thread pool name matches the resource adapter name in default RAR deployment scenarios.
protected WorkManager getDefaultWorkManager()
getDefaultWorkManager in class WorkManagerTaskExecutor