Top Description Interfaces Annotations Classes
[default module]

Package org.springframework.scheduling.annotation

Annotations
@NonNullApi
@NonNullFields
Imports
org.springframework.lang.NonNullApi, .NonNullFields

Annotation support for asynchronous method execution.

Interface Summary

Modifier and TypeInterface and Description
public interface
AsyncConfigurer

Interface to be implemented by @Configuration classes annotated with @EnableAsync that wish to customize the Executor instance used when processing async method invocations or the AsyncUncaughtExceptionHandler instance used to process exception thrown from async method with void return type.

public interface
SchedulingConfigurer

Optional interface to be implemented by @Configuration classes annotated with @EnableScheduling.

Annotation Summary

Modifier and TypeAnnotation and Description
public @interface
Async

Annotation that marks a method as a candidate for asynchronous execution.

public @interface
EnableAsync

Enables Spring's asynchronous method execution capability, similar to functionality found in Spring's <task:*> XML namespace.

public @interface
EnableScheduling

Enables Spring's scheduled task execution capability, similar to functionality found in Spring's <task:*> XML namespace.

public @interface
Scheduled

Annotation that marks a method to be scheduled.

public @interface
Schedules

Container annotation that aggregates several Scheduled annotations.

Class Summary

Modifier and TypeClass and Description
public abstract class
AbstractAsyncConfiguration

Abstract base Configuration class providing common structure for enabling Spring's asynchronous method execution capability.

public class
AnnotationAsyncExecutionInterceptor

Specialization of AsyncExecutionInterceptor that delegates method execution to an Executor based on the Async annotation.

public class
AsyncAnnotationAdvisor

Advisor that activates asynchronous method execution through the Async annotation.

public class
AsyncAnnotationBeanPostProcessor

Bean post-processor that automatically applies asynchronous invocation behavior to any bean that carries the Async annotation at class or method-level by adding a corresponding AsyncAnnotationAdvisor to the exposed proxy (either an existing AOP proxy or a newly generated proxy that implements all the target's interfaces).

public class
AsyncConfigurationSelector

Selects which implementation of AbstractAsyncConfiguration should be used based on the value of EnableAsync#mode on the importing @Configuration class.

public class
AsyncConfigurerSupport

Deprecated since 6.0. as of 6.0 in favor of implementing AsyncConfigurer directly
A convenience AsyncConfigurer that implements all methods so that the defaults are used.
public class
AsyncResult<
the value type
V
>

Deprecated since 6.0. as of 6.0, in favor of CompletableFuture
A pass-through Future handle that can be used for method signatures which are declared with a Future return type for asynchronous execution.
public class
ProxyAsyncConfiguration

@Configuration class that registers the Spring infrastructure beans necessary to enable proxy-based asynchronous method execution.

public class
ScheduledAnnotationBeanPostProcessor

Bean post-processor that registers methods annotated with @Scheduled to be invoked by a org.springframework.scheduling.TaskScheduler according to the "fixedRate", "fixedDelay", or "cron" expression provided via the annotation.

pack-priv abstract class
ScheduledAnnotationReactiveSupport

Helper class for @ScheduledAnnotationBeanPostProcessor to support reactive cases without a dependency on optional classes.

public class
SchedulingConfiguration

@Configuration class that registers a ScheduledAnnotationBeanPostProcessor bean capable of processing Spring's @Scheduled annotation.