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.
Consider using AsyncConfigurerSupport
providing default implementations for
both methods if only one element needs to be customized. Furthermore, backward compatibility
of this interface will be insured in case new customization options are introduced
in the future.
See @EnableAsync
for usage examples.
AbstractAsyncConfiguration
,
EnableAsync
,
AsyncConfigurerSupport
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Executor |
getAsyncExecutor()
The
Executor instance to be used when processing async
method invocations. |
AsyncUncaughtExceptionHandler |
getAsyncUncaughtExceptionHandler()
The
AsyncUncaughtExceptionHandler instance to be used
when an exception is thrown during an asynchronous method execution
with void return type. |
java.util.concurrent.Executor getAsyncExecutor()
Executor
instance to be used when processing async
method invocations.AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler()
AsyncUncaughtExceptionHandler
instance to be used
when an exception is thrown during an asynchronous method execution
with void
return type.