public class SchemaAgreementAchievableCheck extends HealthCheckWithGracePeriod
gracePeriod| Constructor and Description |
|---|
SchemaAgreementAchievableCheck(Supplier<Boolean> isInSchemaAgreement,
Supplier<Boolean> isStorageInSchemaAgreement,
Duration gracePeriod,
TimeSource timeSource) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
check()
Executes the logic for determining whether the system is in a healthy state and returns the
result.
|
protected boolean |
isHealthy()
Executes the specific logic for determining whether the system is in a healthy state.
|
resetprotected boolean isHealthy()
HealthCheckWithGracePeriodHealthCheckWithGracePeriod.check().isHealthy in class HealthCheckWithGracePeriodtrue if the system is healthy, false otherwise.public boolean check()
HealthCheckWithGracePeriodActual health checks are performed by HealthCheckWithGracePeriod.isHealthy(), this method additionally applies
the grace period (as set in the constructor) to failed checks.
check in class HealthCheckWithGracePeriodtrue if the system is healthy, false otherwise.Copyright © 2022. All rights reserved.