程序包 cn.taketoday.scheduling.annotation
@NonNullApi
@NonNullFields
package cn.taketoday.scheduling.annotation
Java 5 annotation for asynchronous method execution.
-
类说明Abstract base
Configurationclass providing common structure for enabling 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 of 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.A convenienceAsyncConfigurerthat implements all methods so that the defaults are used.AsyncResult<V>A pass-throughFuturehandle that can be used for method signatures which are declared with aFuturereturn type for asynchronous execution.Enables asynchronous method execution capability, similar to functionality found in<task:*>XML namespace.Enables scheduled task execution capability, similar to functionality found in<task:*>XML namespace.@Configurationclass that registers the Framework 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 @Scheduledannotation.Optional interface to be implemented by@Configurationclasses annotated with@EnableScheduling.