@Immutable public final class DefaultHealthCheckConfig extends Object implements HealthCheckConfig
HealthCheckConfig.ClusterRolesConfig, HealthCheckConfig.HealthCheckConfigValue| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
HealthCheckConfig.ClusterRolesConfig |
getClusterRolesConfig()
Returns the configuration settings of the health checking regarding cluster roles.
|
Duration |
getInterval() |
Duration |
getServiceTimeout()
Returns the timeout used by the health check for determining the health of a single service.
|
int |
hashCode() |
boolean |
isEnabled() |
static DefaultHealthCheckConfig |
of(com.typesafe.config.Config config)
Returns an instance of
DefaultHealthCheckConfig based on the settings of the specified Config. |
String |
toString() |
public static DefaultHealthCheckConfig of(com.typesafe.config.Config config)
DefaultHealthCheckConfig based on the settings of the specified Config.config - is supposed to provide the settings of the health check config at .org.eclipse.ditto.services.utils.config.DittoConfigError - if config is invalid.public Duration getServiceTimeout()
HealthCheckConfiggetServiceTimeout in interface HealthCheckConfigpublic boolean isEnabled()
isEnabled in interface BasicHealthCheckConfigpublic Duration getInterval()
getInterval in interface BasicHealthCheckConfigpublic HealthCheckConfig.ClusterRolesConfig getClusterRolesConfig()
HealthCheckConfiggetClusterRolesConfig in interface HealthCheckConfigCopyright © 2017–2019 Eclipse Foundation. All rights reserved.