Class HealthCheckingActorOptions

java.lang.Object
org.eclipse.ditto.internal.utils.health.HealthCheckingActorOptions

@Immutable public final class HealthCheckingActorOptions extends Object
Configuration options for the DefaultHealthCheckingActorFactory.
  • Method Details

    • getBuilder

      public static HealthCheckingActorOptions.Builder getBuilder(boolean healthCheckEnabled, Duration interval)
      Returns a Builder to build a HealthCheckActorOptions object.
      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

      public Duration 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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object