类 AsyncExecutionAspectSupport

java.lang.Object
cn.taketoday.aop.interceptor.AsyncExecutionAspectSupport
所有已实现的接口:
Aware, BeanFactoryAware
直接已知子类:
AsyncExecutionInterceptor

public abstract class AsyncExecutionAspectSupport extends Object implements BeanFactoryAware
Base class for asynchronous method execution aspects, such as cn.taketoday.scheduling.annotation.AnnotationAsyncExecutionInterceptor or cn.taketoday.scheduling.aspectj.AnnotationAsyncExecutionAspect.

Provides support for executor qualification on a method-by-method basis. AsyncExecutionAspectSupport objects must be constructed with a default Executor, but each individual method may further qualify a specific Executor bean to be used when executing it, e.g. through an annotation attribute.

从以下版本开始:
4.0
作者:
Chris Beams, Juergen Hoeller, Stephane Nicoll
  • 字段详细资料

    • DEFAULT_TASK_EXECUTOR_BEAN_NAME

      public static final String DEFAULT_TASK_EXECUTOR_BEAN_NAME
      The default name of the TaskExecutor bean to pick up: "taskExecutor".

      Note that the initial lookup happens by type; this is just the fallback in case of multiple executor beans found in the context.

      另请参阅:
  • 构造器详细资料

    • AsyncExecutionAspectSupport

      public AsyncExecutionAspectSupport(@Nullable Executor defaultExecutor)
      Create a new instance with a default AsyncUncaughtExceptionHandler.
      参数:
      defaultExecutor - the Executor (typically a Framework AsyncTaskExecutor or ExecutorService) to delegate to, unless a more specific executor has been requested via a qualifier on the async method, in which case the executor will be looked up at invocation time against the enclosing bean factory
    • AsyncExecutionAspectSupport

      public AsyncExecutionAspectSupport(@Nullable Executor defaultExecutor, AsyncUncaughtExceptionHandler exceptionHandler)
      Create a new AsyncExecutionAspectSupport with the given exception handler.
      参数:
      defaultExecutor - the Executor (typically a Framework AsyncTaskExecutor or ExecutorService) to delegate to, unless a more specific executor has been requested via a qualifier on the async method, in which case the executor will be looked up at invocation time against the enclosing bean factory
      exceptionHandler - the AsyncUncaughtExceptionHandler to use
  • 方法详细资料