Top Description Methods
org.springframework.scheduling.annotation

public Interface AsyncConfigurer

Known Direct Implementers
org.springframework.scheduling.annotation.AsyncConfigurerSupport
Imports
java.util.concurrent.Executor, org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler, org.springframework.lang.Nullable

Interface to be implemented by @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.

Authors
Chris Beams, Stephane Nicoll
Since
3.1
See Also
AbstractAsyncConfiguration, EnableAsync

Method Summary

Modifier and TypeMethod and Description
public default Executor
getAsyncExecutor()

The Executor instance to be used when processing async method invocations.

public default AsyncUncaughtExceptionHandler
getAsyncUncaughtExceptionHandler()

The AsyncUncaughtExceptionHandler instance to be used when an exception is thrown during an asynchronous method execution with void return type.

Method Detail

getAsyncExecutorback to summary
public default Executor getAsyncExecutor()

The Executor instance to be used when processing async method invocations.

Annotations
@Nullable
getAsyncUncaughtExceptionHandlerback to summary
public default AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler()

The AsyncUncaughtExceptionHandler instance to be used when an exception is thrown during an asynchronous method execution with void return type.

Annotations
@Nullable