Package com.netflix.genie.web.tasks
Class TasksCleanup
java.lang.Object
com.netflix.genie.web.tasks.TasksCleanup
Performs any cleanup when the system is shutting down.
- Since:
- 3.0.0
-
Constructor Summary
ConstructorDescriptionTasksCleanup
(@NotNull org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler scheduler) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionvoid
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.
-
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
-