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 theHealthStatusof the application.
-
Method Details
-
current
HealthStatus current()- Returns:
- The current
HealthStatusof the server
-
update
Updates theHealthStatusof the application.- Parameters:
newStatus- The new status- Returns:
- The previous
HealthStatus
-