Class DefaultBasicHealthCheckConfig
java.lang.Object
org.eclipse.ditto.internal.utils.health.config.DefaultBasicHealthCheckConfig
- All Implemented Interfaces:
WithConfigPath,BasicHealthCheckConfig
@Immutable
public final class DefaultBasicHealthCheckConfig
extends Object
implements BasicHealthCheckConfig, WithConfigPath
This class is the default implementation which provides the basic settings of health checking.
-
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.inthashCode()booleanIndicates whether global health checking should be enabled.of(com.typesafe.config.Config config) Returns an instance ofDefaultBasicHealthCheckConfigbased on the settings of the specified Config.toString()
-
Method Details
-
of
Returns an instance ofDefaultBasicHealthCheckConfigbased on the settings of the specified Config.- Parameters:
config- is supposed to provide the settings of the basic health check config at "health-check".- 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:
-
getConfigPath
- Specified by:
getConfigPathin interfaceWithConfigPath
-
equals
-
hashCode
public int hashCode() -
toString
-