org.springframework.scheduling.annotation

## Interface AsyncConfigurer

- All Known Implementing Classes:
    AsyncConfigurerSupport

      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.

  See @`EnableAsync` for usage examples.

  Since:
    3.1
  Author:
    Chris Beams, Stephane Nicoll
  See Also:
    `AbstractAsyncConfiguration`, `EnableAsync`

- - ### Method Summary

    All Methods Instance Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default Executor` | `getAsyncExecutor()` The `Executor` instance to be used when processing async method invocations.
    `default AsyncUncaughtExceptionHandler` | `getAsyncUncaughtExceptionHandler()` The `AsyncUncaughtExceptionHandler` instance to be used when an exception is thrown during an asynchronous method execution with `void` return type.

- - ### Method Detail

    - #### getAsyncExecutor

          @Nullable
          default Executor getAsyncExecutor()

      The `Executor` instance to be used when processing async method invocations.

    - #### getAsyncUncaughtExceptionHandler

          @Nullable
          default AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler()

      The `AsyncUncaughtExceptionHandler` instance to be used when an exception is thrown during an asynchronous method execution with `void` return type.