Package org.apache.camel.health
Interface HealthCheckRepository
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description voidaddConfiguration(String id, HealthCheckConfiguration configuration)Adds a health check configurationdefault Optional<HealthCheck>getCheck(String id)Returns the check identified by the givenidif available.Map<String,HealthCheckConfiguration>getConfigurations()Configurations for health checks based on their idsbooleanisEnabled()Set if the checks associated to this repository is enabled or not.voidsetConfigurations(Map<String,HealthCheckConfiguration> configurations)Configurations for health checks based on their idsvoidsetEnabled(boolean enabled)Set if the checks associated to this repository is enabled or not.Stream<HealthCheck>stream()Returns a sequentialStreamwith the knownHealthCheckas its source.
-
-
-
Method Detail
-
isEnabled
boolean isEnabled()
Set if the checks associated to this repository is enabled or not.
-
setEnabled
void setEnabled(boolean enabled)
Set if the checks associated to this repository is enabled or not.
-
setConfigurations
void setConfigurations(Map<String,HealthCheckConfiguration> configurations)
Configurations for health checks based on their ids
-
getConfigurations
Map<String,HealthCheckConfiguration> getConfigurations()
Configurations for health checks based on their ids
-
addConfiguration
void addConfiguration(String id, HealthCheckConfiguration configuration)
Adds a health check configuration- Parameters:
id- the health check id (can use patterns)configuration- the configuration
-
stream
Stream<HealthCheck> stream()
Returns a sequentialStreamwith the knownHealthCheckas its source.
-
getCheck
default Optional<HealthCheck> getCheck(String id)
Returns the check identified by the givenidif available.
-
-