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
- Author:
- Graeme Rocher
-
Method Summary
Modifier and TypeMethodDescriptioncurrent()
update
(HealthStatus newStatus) Updates theHealthStatus
of the application.
-
Method Details
-
current
HealthStatus current()- Returns:
- The current
HealthStatus
of the server
-
update
Updates theHealthStatus
of the application.- Parameters:
newStatus
- The new status- Returns:
- The previous
HealthStatus
-