@Component
public class TasksCleanup
extends java.lang.Object
Constructor and Description |
---|
TasksCleanup(@NotNull org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler scheduler)
Constructor.
|
Modifier and Type | Method and 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.
|