Package es.urjc.etsii.grafo.events
Class EventAsyncConfigurer
java.lang.Object
es.urjc.etsii.grafo.events.EventAsyncConfigurer
- All Implemented Interfaces:
org.springframework.scheduling.annotation.AsyncConfigurer
@Component
public class EventAsyncConfigurer
extends Object
implements org.springframework.scheduling.annotation.AsyncConfigurer
Configure how events are processed asynchronously
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet async executororg.springframework.aop.interceptor.AsyncUncaughtExceptionHandler
Defines the behaviour when there is an unhandled exception inside the async executor.void
Shutdown executor.
-
Constructor Details
-
EventAsyncConfigurer
public EventAsyncConfigurer()
-
-
Method Details
-
getAsyncExecutor
Get async executor- Specified by:
getAsyncExecutor
in interfaceorg.springframework.scheduling.annotation.AsyncConfigurer
-
shutdownAsyncExecutor
public void shutdownAsyncExecutor()Shutdown executor. It is necessary to call it or it may prevent the app from stopping. -
getAsyncUncaughtExceptionHandler
public org.springframework.aop.interceptor.AsyncUncaughtExceptionHandler getAsyncUncaughtExceptionHandler()Defines the behaviour when there is an unhandled exception inside the async executor.- Specified by:
getAsyncUncaughtExceptionHandler
in interfaceorg.springframework.scheduling.annotation.AsyncConfigurer
-