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 Details

    • ShutdownListener

      public ShutdownListener(ServiceMatcher serviceMatcher)
  • Method Details

    • onApplicationEvent

      public void onApplicationEvent(ShutdownRemoteApplicationEvent event)
      Specified by:
      onApplicationEvent in interface org.springframework.context.ApplicationListener<ShutdownRemoteApplicationEvent>
    • shutdown

      protected int shutdown()
    • setApplicationContext

      public void setApplicationContext(org.springframework.context.ApplicationContext applicationContext) throws org.springframework.beans.BeansException
      Specified by:
      setApplicationContext in interface org.springframework.context.ApplicationContextAware
      Throws:
      org.springframework.beans.BeansException