Interface PersistenceConfig
- All Known Implementing Classes:
DefaultPersistenceConfig
public interface PersistenceConfig
Provides the configuration settings of health check persistence.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumAn enumeration of the known config path expressions and their associated default values forPersistenceConfig. -
Method Summary
Modifier and TypeMethodDescriptionReturns the configuration settings of the metrics reporter.Returns the timeout of the health check for persistence.booleanIndicates whether the persistence health check should be enabled.
-
Method Details
-
isEnabled
boolean isEnabled()Indicates whether the persistence health check should be enabled.- Returns:
trueif the persistence health check should be enabled,falseelse.
-
getTimeout
Duration getTimeout()Returns the timeout of the health check for persistence. If the persistence takes longer than that to respond, it is considered "DOWN".- Returns:
- the timeout of the health check for persistence.
- See Also:
-
getMetricsReporterConfig
MetricsReporterConfig getMetricsReporterConfig()Returns the configuration settings of the metrics reporter.- Returns:
- the config.
-