Class DefaultHealthCheckConfig
java.lang.Object
org.eclipse.ditto.internal.utils.health.config.DefaultHealthCheckConfig
- All Implemented Interfaces:
BasicHealthCheckConfig,HealthCheckConfig,WithPersistenceConfig
This class is the default implementation of
HealthCheckConfig.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.eclipse.ditto.internal.utils.health.config.BasicHealthCheckConfig
BasicHealthCheckConfig.HealthCheckConfigValue -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the interval of health check.Returns the configuration settings of the health check persistence.inthashCode()booleanIndicates whether global health checking should be enabled.static DefaultHealthCheckConfigof(com.typesafe.config.Config config) Returns an instance ofDefaultHealthCheckConfigbased on the settings of the specified Config.toString()
-
Method Details
-
of
Returns an instance ofDefaultHealthCheckConfigbased on the settings of the specified Config.- Parameters:
config- is supposed to provide the settings of the health check as nested Config.- Returns:
- the instance.
- Throws:
DittoConfigError- ifconfigis invalid.
-
isEnabled
public boolean isEnabled()Description copied from interface:BasicHealthCheckConfigIndicates whether global health checking should be enabled.- Specified by:
isEnabledin interfaceBasicHealthCheckConfig- Returns:
trueif health checking should be enabled,falseelse.
-
getInterval
Description copied from interface:BasicHealthCheckConfigReturns the interval of health check.- Specified by:
getIntervalin interfaceBasicHealthCheckConfig- Returns:
- the interval.
- See Also:
-
getPersistenceConfig
Description copied from interface:WithPersistenceConfigReturns the configuration settings of the health check persistence.- Specified by:
getPersistenceConfigin interfaceWithPersistenceConfig- Returns:
- the config.
-
equals
-
hashCode
public int hashCode() -
toString
-