Package io.apicurio.registry.metrics
Class AbstractErrorCounterHealthCheck
- java.lang.Object
-
- io.apicurio.registry.metrics.AbstractErrorCounterHealthCheck
-
- Direct Known Subclasses:
PersistenceExceptionLivenessCheck
,PersistenceTimeoutReadinessCheck
,ResponseErrorLivenessCheck
,ResponseTimeoutReadinessCheck
public class AbstractErrorCounterHealthCheck extends Object
Abstract class containing common logic for health checks based on an error counter.- Author:
- Jakub Senko 'jsenko@redhat.com'
-
-
Field Summary
Fields Modifier and Type Field Description protected long
errorCounter
protected boolean
up
-
Constructor Summary
Constructors Constructor Description AbstractErrorCounterHealthCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected void
callSuper()
protected void
init(Integer configErrorThreshold, Integer configCounterResetWindowDurationSec, Integer configStatusResetWindowDurationSec)
protected void
suspectSuper()
-