public static final class HealthChecker.HealthCheckerImpl extends Object implements HealthChecker
HealthChecker
implementation that is safe for using with multiple threads provided that the
aggregated HealthStatusProvider
are thread-safe.HealthChecker.HealthCheckerImpl
Constructor and Description |
---|
HealthCheckerImpl() |
Modifier and Type | Method and Description |
---|---|
void |
deregister(HealthStatusProvider healthStatusProvider)
Deregisters a
HealthStatusProvider . |
HealthStatus |
getHealthStatus()
Returns the
HealthStatus for the underlying component. |
void |
register(HealthStatusProvider healthStatusProvider)
Registers a
HealthStatusProvider . |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
newHealthChecker
public void register(HealthStatusProvider healthStatusProvider)
HealthChecker
HealthStatusProvider
. After calling this method, the HealthStatus
given by the healthStatusProvider
will be taken into account for computing this HealthStatus
. This method must be
idempotent.register
in interface HealthChecker
healthStatusProvider
- The HealthStatusProvider
to be registered.public void deregister(HealthStatusProvider healthStatusProvider)
HealthChecker
HealthStatusProvider
. After calling this method, the HealthStatus
given by the
healthStatusProvider
won't be taken into account for computing this HealthStatus
. This method
must be idempotent. Calling this method with a HealthStatusProvider
that was not registered should have
no effect.deregister
in interface HealthChecker
healthStatusProvider
- The HealthStatusProvider
to be deregistered.public HealthStatus getHealthStatus()
HealthStatusProvider
HealthStatus
for the underlying component.getHealthStatus
in interface HealthStatusProvider
HealthStatus
.Copyright 2010-2022 ForgeRock AS.