接口的使用
org.springframework.core.task.AsyncTaskExecutor
使用AsyncTaskExecutor的程序包 程序包 说明 org.springframework.aop.interceptor Provides miscellaneous interceptor implementations.org.springframework.core.task This package defines Spring's core TaskExecutor abstraction, and provides SyncTaskExecutor and SimpleAsyncTaskExecutor implementations.org.springframework.core.task.support Support classes for Spring's TaskExecutor abstraction.org.springframework.jca.work Convenience classes for scheduling based on the JCA WorkManager facility, as supported within ResourceAdapters.org.springframework.orm.hibernate5 Package providing integration of Hibernate 5.x with Spring concepts.org.springframework.orm.jpa Package providing integration of JPA (Java Persistence API) with Spring concepts.org.springframework.scheduling General exceptions for Spring's scheduling support, independent of any specific scheduling system.org.springframework.scheduling.commonj Convenience classes for scheduling based on the CommonJ WorkManager/TimerManager facility, as supported by IBM WebSphere 6.0+ and BEA WebLogic 9.0+.org.springframework.scheduling.concurrent Scheduling convenience classes for thejava.util.concurrent
andjavax.enterprise.concurrent
packages, allowing to set up a ThreadPoolExecutor or ScheduledThreadPoolExecutor as a bean in a Spring context.org.springframework.scheduling.quartz Support classes for the open source scheduler Quartz, allowing to set up Quartz Schedulers, JobDetails and Triggers as beans in a Spring context.org.springframework.web.context.request.async Support for asynchronous request processing.org.springframework.web.servlet.config.annotation Annotation-based setup for Spring MVC.org.springframework.web.servlet.mvc.method.annotation MVC infrastructure for annotation-based handler method processing, building on theorg.springframework.web.method.annotation
package.org.springframework.aop.interceptor中AsyncTaskExecutor的使用
返回AsyncTaskExecutor的org.springframework.aop.interceptor中的方法 修饰符和类型 方法 说明 protected AsyncTaskExecutor
AsyncExecutionAspectSupport. determineAsyncExecutor(Method method)
Determine the specific executor to use when executing the given method.参数类型为AsyncTaskExecutor的org.springframework.aop.interceptor中的方法 修饰符和类型 方法 说明 protected Object
AsyncExecutionAspectSupport. doSubmit(Callable<Object> task, AsyncTaskExecutor executor, Class<?> returnType)
Delegate for actually executing the given task with the chosen executor.org.springframework.core.task中AsyncTaskExecutor的使用
org.springframework.core.task中AsyncTaskExecutor的子接口 修饰符和类型 接口 说明 interface
AsyncListenableTaskExecutor
Extension of theAsyncTaskExecutor
interface, adding the capability to submit tasks forListenableFutures
.实现AsyncTaskExecutor的org.springframework.core.task中的类 修饰符和类型 类 说明 class
SimpleAsyncTaskExecutor
TaskExecutor
implementation that fires up a new Thread for each task, executing it asynchronously.org.springframework.core.task.support中AsyncTaskExecutor的使用
实现AsyncTaskExecutor的org.springframework.core.task.support中的类 修饰符和类型 类 说明 class
TaskExecutorAdapter
Adapter that takes a JDKjava.util.concurrent.Executor
and exposes a SpringTaskExecutor
for it.org.springframework.jca.work中AsyncTaskExecutor的使用
实现AsyncTaskExecutor的org.springframework.jca.work中的类 修饰符和类型 类 说明 class
WorkManagerTaskExecutor
TaskExecutor
implementation that delegates to a JCA 1.7 WorkManager, implementing theWorkManager
interface.参数类型为AsyncTaskExecutor的org.springframework.jca.work中的方法 修饰符和类型 方法 说明 void
SimpleTaskWorkManager. setAsyncTaskExecutor(AsyncTaskExecutor asyncTaskExecutor)
Specify the TaskExecutor to use for asynchronous work execution (i.e.org.springframework.orm.hibernate5中AsyncTaskExecutor的使用
参数类型为AsyncTaskExecutor的org.springframework.orm.hibernate5中的方法 修饰符和类型 方法 说明 SessionFactory
LocalSessionFactoryBuilder. buildSessionFactory(AsyncTaskExecutor bootstrapExecutor)
Build the HibernateSessionFactory
through background bootstrapping, using the given executor for a parallel initialization phase (e.g. aSimpleAsyncTaskExecutor
).void
LocalSessionFactoryBean. setBootstrapExecutor(AsyncTaskExecutor bootstrapExecutor)
Specify an asynchronous executor for background bootstrapping, e.g. aSimpleAsyncTaskExecutor
.org.springframework.orm.jpa中AsyncTaskExecutor的使用
返回AsyncTaskExecutor的org.springframework.orm.jpa中的方法 修饰符和类型 方法 说明 AsyncTaskExecutor
AbstractEntityManagerFactoryBean. getBootstrapExecutor()
Return the asynchronous executor for background bootstrapping, if any.参数类型为AsyncTaskExecutor的org.springframework.orm.jpa中的方法 修饰符和类型 方法 说明 void
AbstractEntityManagerFactoryBean. setBootstrapExecutor(AsyncTaskExecutor bootstrapExecutor)
Specify an asynchronous executor for background bootstrapping, e.g. aSimpleAsyncTaskExecutor
.org.springframework.scheduling中AsyncTaskExecutor的使用
org.springframework.scheduling中AsyncTaskExecutor的子接口 修饰符和类型 接口 说明 interface
SchedulingTaskExecutor
ATaskExecutor
extension exposing scheduling characteristics that are relevant to potential task submitters.org.springframework.scheduling.commonj中AsyncTaskExecutor的使用
实现AsyncTaskExecutor的org.springframework.scheduling.commonj中的类 修饰符和类型 类 说明 class
WorkManagerTaskExecutor
已过时。as of 5.1, in favor of the EE 7/8 basedDefaultManagedTaskExecutor
org.springframework.scheduling.concurrent中AsyncTaskExecutor的使用
实现AsyncTaskExecutor的org.springframework.scheduling.concurrent中的类 修饰符和类型 类 说明 class
ConcurrentTaskExecutor
Adapter that takes ajava.util.concurrent.Executor
and exposes a SpringTaskExecutor
for it.class
ConcurrentTaskScheduler
Adapter that takes ajava.util.concurrent.ScheduledExecutorService
and exposes a SpringTaskScheduler
for it.class
DefaultManagedTaskExecutor
JNDI-based variant ofConcurrentTaskExecutor
, performing a default lookup for JSR-236's "java:comp/DefaultManagedExecutorService" in a Java EE 7/8 environment.class
DefaultManagedTaskScheduler
JNDI-based variant ofConcurrentTaskScheduler
, performing a default lookup for JSR-236's "java:comp/DefaultManagedScheduledExecutorService" in a Java EE 7 environment.class
ThreadPoolTaskExecutor
JavaBean that allows for configuring aThreadPoolExecutor
in bean style (through its "corePoolSize", "maxPoolSize", "keepAliveSeconds", "queueCapacity" properties) and exposing it as a SpringTaskExecutor
.class
ThreadPoolTaskScheduler
Implementation of Spring'sTaskScheduler
interface, wrapping a nativeScheduledThreadPoolExecutor
.org.springframework.scheduling.quartz中AsyncTaskExecutor的使用
实现AsyncTaskExecutor的org.springframework.scheduling.quartz中的类 修饰符和类型 类 说明 class
SimpleThreadPoolTaskExecutor
Subclass of Quartz's SimpleThreadPool that implements Spring'sTaskExecutor
interface and listens to Spring lifecycle callbacks.org.springframework.web.context.request.async中AsyncTaskExecutor的使用
返回AsyncTaskExecutor的org.springframework.web.context.request.async中的方法 修饰符和类型 方法 说明 AsyncTaskExecutor
WebAsyncTask. getExecutor()
Return the AsyncTaskExecutor to use for concurrent handling, ornull
if none specified.参数类型为AsyncTaskExecutor的org.springframework.web.context.request.async中的方法 修饰符和类型 方法 说明 void
WebAsyncManager. setTaskExecutor(AsyncTaskExecutor taskExecutor)
Configure an AsyncTaskExecutor for use with concurrent processing viaWebAsyncManager.startCallableProcessing(Callable, Object...)
.参数类型为AsyncTaskExecutor的org.springframework.web.context.request.async中的构造器 构造器 说明 WebAsyncTask(Long timeout, AsyncTaskExecutor executor, Callable<V> callable)
Create aWebAsyncTask
with a timeout value, an executor instance, and a Callable.org.springframework.web.servlet.config.annotation中AsyncTaskExecutor的使用
返回AsyncTaskExecutor的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 protected AsyncTaskExecutor
AsyncSupportConfigurer. getTaskExecutor()
参数类型为AsyncTaskExecutor的org.springframework.web.servlet.config.annotation中的方法 修饰符和类型 方法 说明 AsyncSupportConfigurer
AsyncSupportConfigurer. setTaskExecutor(AsyncTaskExecutor taskExecutor)
The provided task executor is used to: HandleCallable
controller method return values.org.springframework.web.servlet.mvc.method.annotation中AsyncTaskExecutor的使用
参数类型为AsyncTaskExecutor的org.springframework.web.servlet.mvc.method.annotation中的方法 修饰符和类型 方法 说明 void
RequestMappingHandlerAdapter. setTaskExecutor(AsyncTaskExecutor taskExecutor)
Set the defaultAsyncTaskExecutor
to use when a controller method return aCallable
.