Class StartupHealthIndicator

java.lang.Object
de.otto.synapse.edison.health.AbstractChannelHealthIndicator
de.otto.synapse.edison.health.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 Details

    • StartupHealthIndicator

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