Class StatusRoute
java.lang.Object
org.eclipse.ditto.internal.utils.health.routes.StatusRoute
Builder for creating Pekko HTTP route for
/status.-
Constructor Summary
ConstructorsConstructorDescriptionStatusRoute(Supplier<ClusterStatus> clusterStateSupplier, org.apache.pekko.actor.ActorRef healthCheckingActor, org.apache.pekko.actor.ActorSystem actorSystem) Constructs the/statusroute builder. -
Method Summary
Modifier and TypeMethodDescriptionorg.apache.pekko.http.javadsl.server.RouteBuilds the/statusroute.
-
Constructor Details
-
StatusRoute
public StatusRoute(Supplier<ClusterStatus> clusterStateSupplier, org.apache.pekko.actor.ActorRef healthCheckingActor, org.apache.pekko.actor.ActorSystem actorSystem) Constructs the/statusroute 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/statusroute.- Returns:
- the
/statusroute.
-