public interface CurrentHealthStatus
Strategy interface for retrieving and updating the current HealthStatus
of the application.
Implementations of this class should be thread safe
Modifier and Type | Method and Description |
---|---|
HealthStatus |
current() |
HealthStatus |
update(HealthStatus newStatus)
Updates the
HealthStatus of the application. |
HealthStatus current()
HealthStatus
of the serverHealthStatus update(HealthStatus newStatus)
HealthStatus
of the application.newStatus
- The new statusHealthStatus