Class AccessTokenProviderHealthIndicator
java.lang.Object
org.springframework.boot.actuate.health.AbstractHealthIndicator
org.entur.jwt.client.spring.actuate.AccessTokenProviderHealthIndicator
- All Implemented Interfaces:
org.springframework.boot.actuate.health.HealthContributor,org.springframework.boot.actuate.health.HealthIndicator
public class AccessTokenProviderHealthIndicator
extends org.springframework.boot.actuate.health.AbstractHealthIndicator
Health indicator that injects itself into the corresponding health endpoint.
Assuming we're checking for readiness.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionAccessTokenProviderHealthIndicator(List<AccessTokenHealthProvider> statusProviders) AccessTokenProviderHealthIndicator(AccessTokenHealthProvider[] statusProviders) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoHealthCheck(org.springframework.boot.actuate.health.Health.Builder builder) protected voidlogInitialOrChangedState(boolean success) Methods inherited from class org.springframework.boot.actuate.health.AbstractHealthIndicator
healthMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.springframework.boot.actuate.health.HealthIndicator
getHealth
-
Field Details
-
logger
protected static final org.slf4j.Logger logger
-
-
Constructor Details
-
AccessTokenProviderHealthIndicator
-
AccessTokenProviderHealthIndicator
-
-
Method Details
-
doHealthCheck
protected void doHealthCheck(org.springframework.boot.actuate.health.Health.Builder builder) throws Exception - Specified by:
doHealthCheckin classorg.springframework.boot.actuate.health.AbstractHealthIndicator- Throws:
Exception
-
logInitialOrChangedState
protected void logInitialOrChangedState(boolean success)
-