Class StartupHealthIndicator

  • All Implemented Interfaces:
    org.springframework.boot.actuate.health.HealthContributor, 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 AbstractChannelHealthIndicator
    A Spring Boot HealthIndicator that is healthy after finishing all events of an EventSource for the first time. Caution: If you add eventsources asynchronously please use FixedChannelHealthIndicator instead.
    • Constructor Summary

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

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.boot.actuate.health.HealthIndicator

        getHealth
    • Constructor Detail

      • StartupHealthIndicator

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