Package org.opennms.core.health.api
Interface HealthCheckResponseCache
-
- All Known Subinterfaces:
CachingHealthCheck
- All Known Implementing Classes:
DefaultPassiveHealthCheck
public interface HealthCheckResponseCache
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
setResponse(Response response)
Sets the cached response forHealthCheck.perform(Context)
calls.
-
-
-
Method Detail
-
setResponse
void setResponse(Response response)
Sets the cached response forHealthCheck.perform(Context)
calls.A
CachingHealthCheck
saves the current time as the timestamp of the given response. When the health check is performed theContext.getMaxAge()
property is checked if the cached response can be used.
-
-