Class StartupHealthIndicator

  • All Implemented Interfaces:
    org.springframework.boot.actuate.health.HealthIndicator

    @Component
    @ConditionalOnProperty(prefix="synapse.edison.health",
                           name="startup.enabled",
                           havingValue="true",
                           matchIfMissing=true)
    @ConditionalOnBean(de.otto.synapse.eventsource.EventSource.class)
    public class StartupHealthIndicator
    extends java.lang.Object
    implements org.springframework.boot.actuate.health.HealthIndicator
    A Spring Boot HealthIndicator that is healthy after finishing all events of an EventSource for the first time.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static long TEN_SECONDS  
    • Constructor Summary

      Constructors 
      Constructor Description
      StartupHealthIndicator​(java.util.Optional<java.util.List<de.otto.synapse.eventsource.EventSource>> eventSources)  
    • Method Summary

      Modifier and Type Method Description
      org.springframework.boot.actuate.health.Health health()  
      void on​(de.otto.synapse.info.MessageReceiverNotification notification)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • StartupHealthIndicator

        @Autowired
        public StartupHealthIndicator​(java.util.Optional<java.util.List<de.otto.synapse.eventsource.EventSource>> eventSources)
    • Method Detail

      • on

        @EventListener
        public void on​(de.otto.synapse.info.MessageReceiverNotification notification)
      • health

        public org.springframework.boot.actuate.health.Health health()
        Specified by:
        health in interface org.springframework.boot.actuate.health.HealthIndicator