Class TasksCleanup

java.lang.Object
com.netflix.genie.web.tasks.TasksCleanup

@Component public class TasksCleanup extends Object
Performs any cleanup when the system is shutting down.
Since:
3.0.0
  • Constructor Summary

    Constructors
    Constructor
    Description
    TasksCleanup(@NotNull org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler scheduler)
    Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    onShutdown(org.springframework.context.event.ContextClosedEvent event)
    When the spring context is about to close make sure we shutdown the thread pool and anything else we need to do.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TasksCleanup

      @Autowired public TasksCleanup(@Qualifier("genieTaskScheduler") @NotNull @NotNull org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler scheduler)
      Constructor.
      Parameters:
      scheduler - The task scheduler for the system.
  • Method Details

    • onShutdown

      @EventListener public void onShutdown(org.springframework.context.event.ContextClosedEvent event)
      When the spring context is about to close make sure we shutdown the thread pool and anything else we need to do.
      Parameters:
      event - The context closed event