Class SnailJobCloseListener
java.lang.Object
com.aizuda.snailjob.client.common.init.SnailJobCloseListener
- All Implemented Interfaces:
EventListener,org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>
@Component
public class SnailJobCloseListener
extends Object
implements org.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>
系统关闭监听器
- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidonApplicationEvent(org.springframework.context.event.ContextClosedEvent event) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.context.ApplicationListener
supportsAsyncExecution
-
Constructor Details
-
SnailJobCloseListener
public SnailJobCloseListener()
-
-
Method Details
-
onApplicationEvent
public void onApplicationEvent(org.springframework.context.event.ContextClosedEvent event) - Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<org.springframework.context.event.ContextClosedEvent>
-