T - The health indication typepublic abstract class AbstractHealthIndicator<T> extends Object implements HealthIndicator
A base health indicator class to extend from that catches exceptions thrown from the
 getHealthInformation() method and updates the HealthResult with the exception information.
| Modifier and Type | Field and Description | 
|---|---|
protected ExecutorService | 
executorService  | 
protected HealthStatus | 
healthStatus  | 
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE| Constructor and Description | 
|---|
AbstractHealthIndicator()  | 
| Modifier and Type | Method and Description | 
|---|---|
protected abstract T | 
getHealthInformation()
Provides information (typically a Map) to be returned. 
 | 
protected HealthResult | 
getHealthResult()
Builds the whole health result. 
 | 
protected abstract String | 
getName()
Used to populate the  
HealthResult. | 
Publisher<HealthResult> | 
getResult()  | 
void | 
setExecutorService(ExecutorService executorService)  | 
protected ExecutorService executorService
protected HealthStatus healthStatus
@Inject public void setExecutorService(@Named(value="io") ExecutorService executorService)
executorService - The executor servicepublic Publisher<HealthResult> getResult()
getResult in interface HealthIndicatorHealthResult that provides the
 information necessary to build a response.protected abstract T getHealthInformation()
healthStatus field during execution,
 otherwise HealthStatus.UNKNOWN will be used.protected HealthResult getHealthResult()
protected abstract String getName()
HealthResult. Provides a key to go along with the health information.