Class HealthRouteSupplier
java.lang.Object
org.eclipse.ditto.internal.utils.health.HealthRouteSupplier
- All Implemented Interfaces:
Supplier<org.apache.pekko.http.javadsl.server.Route>
public class HealthRouteSupplier
extends Object
implements Supplier<org.apache.pekko.http.javadsl.server.Route>
Function for Pekko HTTP Routes to transform a RequestContext into a RouteResult with the expected status code for
health (200/503) and the required format.
-
Constructor Summary
ConstructorsConstructorDescriptionHealthRouteSupplier(org.apache.pekko.actor.ActorRef healthCheckingActor, org.apache.pekko.event.LoggingAdapter log) Constructs a newHealthRouteFunction. -
Method Summary
-
Constructor Details
-
HealthRouteSupplier
public HealthRouteSupplier(org.apache.pekko.actor.ActorRef healthCheckingActor, org.apache.pekko.event.LoggingAdapter log) Constructs a newHealthRouteFunction.- Parameters:
healthCheckingActor- the Actor selection to the health-checking actor to use.log- the logging adatper to use.
-
-
Method Details