public interface AsyncConfigurer
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.
AbstractAsyncConfiguration,
EnableAsync| 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. |
@Nullable default Executor getAsyncExecutor()
Executor instance to be used when processing async
method invocations.@Nullable default AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler()
AsyncUncaughtExceptionHandler instance to be used
when an exception is thrown during an asynchronous method execution
with void return type.