Class ShutdownListener
java.lang.Object
org.springframework.cloud.bus.event.ShutdownListener
- All Implemented Interfaces:
EventListener,org.springframework.beans.factory.Aware,org.springframework.context.ApplicationContextAware,org.springframework.context.ApplicationListener<ShutdownRemoteApplicationEvent>
public class ShutdownListener
extends Object
implements org.springframework.context.ApplicationListener<ShutdownRemoteApplicationEvent>, org.springframework.context.ApplicationContextAware
- Author:
- Ryan Baxter
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidvoidsetApplicationContext(org.springframework.context.ApplicationContext applicationContext) protected intshutdown()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
-
ShutdownListener
-
-
Method Details
-
onApplicationEvent
- Specified by:
onApplicationEventin interfaceorg.springframework.context.ApplicationListener<ShutdownRemoteApplicationEvent>
-
shutdown
protected int shutdown() -
setApplicationContext
public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException - Specified by:
setApplicationContextin interfaceorg.springframework.context.ApplicationContextAware- Throws:
org.springframework.beans.BeansException
-