java.lang.Object
org.eclipse.ditto.internal.utils.health.routes.StatusRoute

public final class StatusRoute extends Object
Builder for creating Pekko HTTP route for /status.
  • Constructor Details

    • StatusRoute

      public StatusRoute(Supplier<ClusterStatus> clusterStateSupplier, org.apache.pekko.actor.ActorRef healthCheckingActor, org.apache.pekko.actor.ActorSystem actorSystem)
      Constructs the /status route builder.
      Parameters:
      clusterStateSupplier - the supplier to get the cluster state.
      healthCheckingActor - the HealthCheckingActor to use.
      actorSystem - the Pekko ActorSystem.
  • Method Details

    • buildStatusRoute

      public org.apache.pekko.http.javadsl.server.Route buildStatusRoute()
      Builds the /status route.
      Returns:
      the /status route.