Package org.springframework.scheduling.annotation
@NonNullApi
@NonNullFields
package org.springframework.scheduling.annotation
Annotation support for asynchronous method execution.
-
ClassDescriptionAbstract base
Configuration
class providing common structure for enabling Spring's asynchronous method execution capability.Specialization ofAsyncExecutionInterceptor
that delegates method execution to anExecutor
based on theAsync
annotation.Annotation that marks a method as a candidate for asynchronous execution.Advisor that activates asynchronous method execution through theAsync
annotation.Bean post-processor that automatically applies asynchronous invocation behavior to any bean that carries theAsync
annotation at class or method-level by adding a correspondingAsyncAnnotationAdvisor
to the exposed proxy (either an existing AOP proxy or a newly generated proxy that implements all the target's interfaces).Selects which implementation ofAbstractAsyncConfiguration
should be used based on the value ofEnableAsync.mode()
on the importing@Configuration
class.Interface to be implemented by @Configuration
classes annotated with @EnableAsync
that wish to customize theExecutor
instance used when processing async method invocations or theAsyncUncaughtExceptionHandler
instance used to process exception thrown from async method withvoid
return type.Deprecated.AsyncResult<V>Deprecated.as of 6.0, in favor ofCompletableFuture
Enables Spring's asynchronous method execution capability, similar to functionality found in Spring's<task:*>
XML namespace.Enables Spring's scheduled task execution capability, similar to functionality found in Spring's<task:*>
XML namespace.@Configuration
class that registers the Spring infrastructure beans necessary to enable proxy-based asynchronous method execution.Annotation that marks a method to be scheduled.Bean post-processor that registers methods annotated with@Scheduled
to be invoked by aTaskScheduler
according to the "fixedRate", "fixedDelay", or "cron" expression provided via the annotation.Container annotation that aggregates severalScheduled
annotations.@Configuration
class that registers aScheduledAnnotationBeanPostProcessor
bean capable of processing Spring's @Scheduled
annotation.Optional interface to be implemented by@Configuration
classes annotated with@EnableScheduling
.
AsyncConfigurer
directly