Class AsyncConfigurerSupport
- java.lang.Object
- org.springframework.scheduling.annotation.AsyncConfigurerSupport
- All Implemented Interfaces:
AsyncConfigurer
public class AsyncConfigurerSupport extends Object implements AsyncConfigurer
A convenienceAsyncConfigurer
that implements all methods so that the defaults are used. Provides a backward compatible alternative of implementingAsyncConfigurer
directly.- 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 Executor
getAsyncExecutor()
TheExecutor
instance to be used when processing async method invocations.AsyncUncaughtExceptionHandler
getAsyncUncaughtExceptionHandler()
TheAsyncUncaughtExceptionHandler
instance to be used when an exception is thrown during an asynchronous method execution withvoid
return type.
Constructor Detail
AsyncConfigurerSupport
public AsyncConfigurerSupport()
Method Detail
getAsyncExecutor
public Executor getAsyncExecutor()
Description copied from interface:AsyncConfigurer
TheExecutor
instance to be used when processing async method invocations.- Specified by:
getAsyncExecutor
in interfaceAsyncConfigurer
getAsyncUncaughtExceptionHandler
@Nullable public AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler()
Description copied from interface:AsyncConfigurer
TheAsyncUncaughtExceptionHandler
instance to be used when an exception is thrown during an asynchronous method execution withvoid
return type.- Specified by:
getAsyncUncaughtExceptionHandler
in interfaceAsyncConfigurer