Package io.apicurio.registry.metrics
Class PersistenceTimeoutReadinessCheck
- java.lang.Object
-
- io.apicurio.registry.metrics.AbstractErrorCounterHealthCheck
-
- io.apicurio.registry.metrics.PersistenceTimeoutReadinessCheck
-
- All Implemented Interfaces:
org.eclipse.microprofile.health.HealthCheck
@ApplicationScoped @Liveness @Default public class PersistenceTimeoutReadinessCheck extends AbstractErrorCounterHealthCheck implements org.eclipse.microprofile.health.HealthCheck
Fail readiness check if the duration of processing a artifactStore operation is too high.- Author:
- Jakub Senko 'jsenko@redhat.com'
-
-
Field Summary
-
Fields inherited from class io.apicurio.registry.metrics.AbstractErrorCounterHealthCheck
errorCounter, up
-
-
Constructor Summary
Constructors Constructor Description PersistenceTimeoutReadinessCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.microprofile.health.HealthCheckResponse
call()
Duration
getTimeoutSec()
-
Methods inherited from class io.apicurio.registry.metrics.AbstractErrorCounterHealthCheck
callSuper, init, suspectSuper
-
-
-
-
Method Detail
-
call
public org.eclipse.microprofile.health.HealthCheckResponse call()
- Specified by:
call
in interfaceorg.eclipse.microprofile.health.HealthCheck
-
getTimeoutSec
public Duration getTimeoutSec()
-
-