Package org.springframework.scheduling.annotation
@NullMarked
package org.springframework.scheduling.annotation
Annotation support for asynchronous method execution.
-
ClassDescriptionAbstract base
Configurationclass providing common structure for enabling Spring's asynchronous method execution capability.Specialization ofAsyncExecutionInterceptorthat delegates method execution to anExecutorbased on theAsyncannotation.Annotation that marks a method as a candidate for asynchronous execution.Advisor that activates asynchronous method execution through theAsyncannotation.Bean post-processor that automatically applies asynchronous invocation behavior to any bean that carries theAsyncannotation at class or method-level by adding a correspondingAsyncAnnotationAdvisorto the exposed proxy (either an existing AOP proxy or a newly generated proxy that implements all the target's interfaces).Selects which implementation ofAbstractAsyncConfigurationshould be used based on the value ofEnableAsync.mode()on the importing@Configurationclass.Interface to be implemented by @Configurationclasses annotated with @EnableAsyncthat wish to customize theExecutorinstance used when processing async method invocations or theAsyncUncaughtExceptionHandlerinstance used to process exception thrown from async method withvoidreturn type.Deprecated.AsyncResult<V>Deprecated.as of 6.0, in favor ofCompletableFutureEnables 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.@Configurationclass 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@Scheduledto be invoked by aTaskScheduleraccording to the "fixedRate", "fixedDelay", or "cron" expression provided via the annotation.Container annotation that aggregates severalScheduledannotations.@Configurationclass that registers aScheduledAnnotationBeanPostProcessorbean capable of processing Spring's @Scheduledannotation.Optional interface to be implemented by@Configurationclasses annotated with@EnableScheduling.
AsyncConfigurerdirectly