Class AsyncConfigurerSupport
- java.lang.Object
- org.springframework.scheduling.annotation.AsyncConfigurerSupport
- All Implemented Interfaces:
AsyncConfigurer
public class AsyncConfigurerSupport extends Object implements AsyncConfigurer
A convenienceAsyncConfigurerthat implements all methods so that the defaults are used. Provides a backward compatible alternative of implementingAsyncConfigurerdirectly.- Since:
- 4.1
- Author:
- Stephane Nicoll
Constructor Summary
Constructors Constructor Description AsyncConfigurerSupport()
Method Summary
All Methods Instance Methods Concrete 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.
Constructor Detail
AsyncConfigurerSupport
public AsyncConfigurerSupport()
Method Detail
getAsyncExecutor
public Executor getAsyncExecutor()
Description copied from interface:AsyncConfigurerTheExecutorinstance to be used when processing async method invocations.- Specified by:
getAsyncExecutorin interfaceAsyncConfigurer
getAsyncUncaughtExceptionHandler
public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler()
Description copied from interface:AsyncConfigurerTheAsyncUncaughtExceptionHandlerinstance to be used when an exception is thrown during an asynchronous method execution withvoidreturn type.- Specified by:
getAsyncUncaughtExceptionHandlerin interfaceAsyncConfigurer