Class HealthCheckingActorOptions
java.lang.Object
org.eclipse.ditto.internal.utils.health.HealthCheckingActorOptions
Configuration options for the
DefaultHealthCheckingActorFactory.-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classA builder for buildingHealthCheckingActorOptionsobjects. -
Method Summary
Modifier and TypeMethodDescriptionbooleangetBuilder(boolean healthCheckEnabled, Duration interval) Returns aBuilderto build aHealthCheckActorOptionsobject.Returns the persistence check interval.inthashCode()booleanReturns if the health check is enabled globally.booleanReturns if the persistence health check is enabled.toString()
-
Method Details
-
getBuilder
public static HealthCheckingActorOptions.Builder getBuilder(boolean healthCheckEnabled, Duration interval) Returns aBuilderto build aHealthCheckActorOptionsobject.- Parameters:
healthCheckEnabled- whether the health check is enabled globally.interval- the interval for the check.- Returns:
- the builder.
-
isHealthCheckEnabled
public boolean isHealthCheckEnabled()Returns if the health check is enabled globally.- Returns:
- true if enabled, else false.
-
getInterval
Returns the persistence check interval.- Returns:
- the interval.
-
isPersistenceCheckEnabled
public boolean isPersistenceCheckEnabled()Returns if the persistence health check is enabled.- Returns:
- true if enabled, else false.
-
equals
-
hashCode
public int hashCode() -
toString
-