Class HealthCheckingActorOptions.Builder

java.lang.Object
org.eclipse.ditto.internal.utils.health.HealthCheckingActorOptions.Builder
Enclosing class:
HealthCheckingActorOptions

public static final class HealthCheckingActorOptions.Builder extends Object
A builder for building HealthCheckingActorOptions objects.
  • Constructor Details

    • Builder

      public Builder(boolean healthCheckEnabled, Duration interval)
      Constructs a new Builder object.
      Parameters:
      healthCheckEnabled - whether the health check should be enabled globally or not.
      interval - the interval for the check.
  • Method Details

    • enablePersistenceCheck

      public HealthCheckingActorOptions.Builder enablePersistenceCheck()
      Enables the health check for the persistence.
      Returns:
      this builder for method chaining.
    • build

      Builds the HealthCheckingActorOptions object.
      Returns:
      the HealthCheckingActorOptions.