Interface AsyncConfigurer
- All Known Implementing Classes:
AsyncConfigurerSupport
public interface AsyncConfigurer
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.Consider using
AsyncConfigurerSupportproviding 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 @
EnableAsyncfor usage examples.- Since:
- 3.1
- Author:
- Chris Beams, Stephane Nicoll
- See Also:
AbstractAsyncConfiguration,EnableAsync,AsyncConfigurerSupport
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ExecutorgetAsyncExecutor()TheExecutorinstance to be used when processing async method invocations.AsyncUncaughtExceptionHandlergetAsyncUncaughtExceptionHandler()TheAsyncUncaughtExceptionHandlerinstance to be used when an exception is thrown during an asynchronous method execution withvoidreturn type.
Method Detail
getAsyncExecutor
Executor getAsyncExecutor()
TheExecutorinstance to be used when processing async method invocations.
getAsyncUncaughtExceptionHandler
AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler()
TheAsyncUncaughtExceptionHandlerinstance to be used when an exception is thrown during an asynchronous method execution withvoidreturn type.