类 DefaultManagedTaskExecutor
java.lang.Object
cn.taketoday.scheduling.concurrent.ConcurrentTaskExecutor
cn.taketoday.scheduling.concurrent.DefaultManagedTaskExecutor
- 所有已实现的接口:
InitializingBean,cn.taketoday.core.task.AsyncListenableTaskExecutor,cn.taketoday.core.task.AsyncTaskExecutor,cn.taketoday.core.task.TaskExecutor,SchedulingTaskExecutor,Executor
JNDI-based variant of
ConcurrentTaskExecutor, performing a default lookup for
JSR-236's "java:comp/DefaultManagedExecutorService" in a Jakarta EE/8 environment.
Note: This class is not strictly JSR-236 based; it can work with any regular
Executor that can be found in JNDI.
The actual adapting to ManagedExecutorService
happens in the base class ConcurrentTaskExecutor itself.
- 从以下版本开始:
- 4.0
- 作者:
- Juergen Hoeller
- 另请参阅:
-
ManagedExecutorService
-
嵌套类概要
从类继承的嵌套类/接口 cn.taketoday.scheduling.concurrent.ConcurrentTaskExecutor
ConcurrentTaskExecutor.ManagedTaskBuilder -
字段概要
从接口继承的字段 cn.taketoday.core.task.AsyncTaskExecutor
TIMEOUT_IMMEDIATE, TIMEOUT_INDEFINITE -
构造器概要
构造器 -
方法概要
修饰符和类型方法说明voidvoidsetJndiEnvironment(Properties jndiEnvironment) Set the JNDI environment to use for JNDI lookups.voidsetJndiName(String jndiName) Specify a JNDI name of theExecutorto delegate to, replacing the default JNDI name "java:comp/DefaultManagedExecutorService".voidsetJndiTemplate(JndiTemplate jndiTemplate) Set the JNDI template to use for JNDI lookups.voidsetResourceRef(boolean resourceRef) Set whether the lookup occurs in a Jakarta EE container, i.e. if the prefix "java:comp/env/" needs to be added if the JNDI name doesn't already contain it.从类继承的方法 cn.taketoday.scheduling.concurrent.ConcurrentTaskExecutor
execute, execute, getConcurrentExecutor, setConcurrentExecutor, setTaskDecorator, submit, submit, submitListenable, submitListenable从类继承的方法 java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait从接口继承的方法 cn.taketoday.core.task.AsyncTaskExecutor
submitCompletable, submitCompletable从接口继承的方法 cn.taketoday.scheduling.SchedulingTaskExecutor
prefersShortLivedTasks
-
构造器详细资料
-
DefaultManagedTaskExecutor
public DefaultManagedTaskExecutor()
-
-
方法详细资料
-
setJndiTemplate
Set the JNDI template to use for JNDI lookups. -
setJndiEnvironment
Set the JNDI environment to use for JNDI lookups. -
setResourceRef
public void setResourceRef(boolean resourceRef) Set whether the lookup occurs in a Jakarta EE container, i.e. if the prefix "java:comp/env/" needs to be added if the JNDI name doesn't already contain it. PersistenceAnnotationBeanPostProcessor's default is "true". -
setJndiName
Specify a JNDI name of theExecutorto delegate to, replacing the default JNDI name "java:comp/DefaultManagedExecutorService".This can either be a fully qualified JNDI name, or the JNDI name relative to the current environment naming context if "resourceRef" is set to "true".
-
afterPropertiesSet
- 指定者:
afterPropertiesSet在接口中InitializingBean- 抛出:
NamingException
-