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 Details

    • EventAsyncConfigurer

      public EventAsyncConfigurer()
  • Method Details

    • getAsyncExecutor

      public Executor getAsyncExecutor()
      Get async executor
      Specified by:
      getAsyncExecutor in interface org.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 interface org.springframework.scheduling.annotation.AsyncConfigurer