@Configurable public class IfHealthStatus extends AbstractHealthCheckPredicate
Constructor and Description |
---|
IfHealthStatus(HealthCheck healthCheck,
HealthStatus status) |
IfHealthStatus(HealthStatus status) |
Modifier and Type | Method and Description |
---|---|
HealthStatus |
getStatus() |
boolean |
isMatch(HealthEvent healthEvent)
The abstract match returns true, so a child can combine its own
matches with the parent.
|
void |
setCount(int recheckCount) |
void |
setStatus(HealthStatus status) |
void |
setSystemRecheckTime(boolean isSystemRecheck) |
void |
setTime(Period recheckTime) |
void |
setTimeMillis(long recheckTime) |
getHealthCheck, getLastResult, setHealthCheck, toString
public IfHealthStatus(HealthStatus status)
public IfHealthStatus(HealthCheck healthCheck, HealthStatus status)
@Configurable public void setStatus(HealthStatus status)
public HealthStatus getStatus()
@Configurable public void setTime(Period recheckTime)
public void setTimeMillis(long recheckTime)
public void setSystemRecheckTime(boolean isSystemRecheck)
public void setCount(int recheckCount)
public boolean isMatch(HealthEvent healthEvent)
AbstractHealthPredicate
isMatch
doesn't return true.isMatch
in interface HealthPredicate
isMatch
in class AbstractScheduledHealthPredicate