Package io.micronaut.health
Interface CurrentHealthStatus
-
public interface CurrentHealthStatus
Strategy interface for retrieving and updating the current
HealthStatus
of the application.Implementations of this class should be thread safe
- Since:
- 1.0
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description HealthStatus
current()
HealthStatus
update(HealthStatus newStatus)
Updates theHealthStatus
of the application.
-
-
-
Method Detail
-
current
HealthStatus current()
- Returns:
- The current
HealthStatus
of the server
-
update
HealthStatus update(HealthStatus newStatus)
Updates theHealthStatus
of the application.- Parameters:
newStatus
- The new status- Returns:
- The previous
HealthStatus
-
-