Class LivenessStateHealthIndicator
java.lang.Object
org.springframework.boot.actuate.health.AbstractHealthIndicator
org.springframework.boot.actuate.availability.AvailabilityStateHealthIndicator
org.springframework.boot.actuate.availability.LivenessStateHealthIndicator
- All Implemented Interfaces:
HealthContributor
,HealthIndicator
A
HealthIndicator
that checks the LivenessState
of the application.- Since:
- 2.3.0
- Author:
- Brian Clozel
-
Nested Class Summary
Nested classes/interfaces inherited from class org.springframework.boot.actuate.availability.AvailabilityStateHealthIndicator
AvailabilityStateHealthIndicator.StatusMappings<S extends AvailabilityState>
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected AvailabilityState
getState
(ApplicationAvailability applicationAvailability) Return the current availability state.Methods inherited from class org.springframework.boot.actuate.availability.AvailabilityStateHealthIndicator
doHealthCheck
Methods inherited from class org.springframework.boot.actuate.health.AbstractHealthIndicator
health
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 Details
-
LivenessStateHealthIndicator
-
-
Method Details
-
getState
Description copied from class:AvailabilityStateHealthIndicator
Return the current availability state. Subclasses can override this method if a different retrieval mechanism is needed.- Overrides:
getState
in classAvailabilityStateHealthIndicator
- Parameters:
applicationAvailability
- the application availability- Returns:
- the current availability state
-