Package de.otto.synapse.edison.health
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.-
Field Summary
Fields inherited from class de.otto.synapse.edison.health.AbstractChannelHealthIndicator
TEN_SECONDS -
Constructor Summary
Constructors Constructor Description StartupHealthIndicator(java.util.Optional<java.util.List<de.otto.synapse.eventsource.EventSource>> eventSources) -
Method Summary
Methods inherited from class de.otto.synapse.edison.health.AbstractChannelHealthIndicator
health, on
-
Constructor Details
-
StartupHealthIndicator
@Autowired public StartupHealthIndicator(java.util.Optional<java.util.List<de.otto.synapse.eventsource.EventSource>> eventSources)
-