接口 AsyncConfigurer
- 所有已知实现类:
AsyncConfigurerSupport
public interface AsyncConfigurer
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.
- 从以下版本开始:
- 4.0
- 作者:
- Chris Beams, Stephane Nicoll
- 另请参阅:
-
方法概要
修饰符和类型方法说明default ExecutorTheExecutorinstance to be used when processing async method invocations.default AsyncUncaughtExceptionHandlerTheAsyncUncaughtExceptionHandlerinstance to be used when an exception is thrown during an asynchronous method execution withvoidreturn type.
-
方法详细资料
-
getAsyncExecutor
TheExecutorinstance to be used when processing async method invocations. -
getAsyncUncaughtExceptionHandler
TheAsyncUncaughtExceptionHandlerinstance to be used when an exception is thrown during an asynchronous method execution withvoidreturn type.
-