Package io.apicurio.registry.metrics
Class PersistenceExceptionLivenessCheck
- java.lang.Object
-
- io.apicurio.registry.metrics.AbstractErrorCounterHealthCheck
-
- io.apicurio.registry.metrics.PersistenceExceptionLivenessCheck
-
- All Implemented Interfaces:
LivenessCheck
,org.eclipse.microprofile.health.HealthCheck
@ApplicationScoped @Liveness @Default public class PersistenceExceptionLivenessCheck extends AbstractErrorCounterHealthCheck implements org.eclipse.microprofile.health.HealthCheck, LivenessCheck
Fail liveness check if the number of exceptions thrown by artifactStore 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 PersistenceExceptionLivenessCheck()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.eclipse.microprofile.health.HealthCheckResponse
call()
void
suspect(String reason)
void
suspectWithException(Throwable reason)
-
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
-
suspect
public void suspect(String reason)
- Specified by:
suspect
in interfaceLivenessCheck
-
suspectWithException
public void suspectWithException(Throwable reason)
- Specified by:
suspectWithException
in interfaceLivenessCheck
-
-