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

    Constructors
    Constructor
    Description
    HealthRouteSupplier(org.apache.pekko.actor.ActorRef healthCheckingActor, org.apache.pekko.event.LoggingAdapter log)
    Constructs a new HealthRouteFunction.
  • Method Summary

    Modifier and Type
    Method
    Description
    org.apache.pekko.http.javadsl.server.Route
    get()
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • HealthRouteSupplier

      public HealthRouteSupplier(org.apache.pekko.actor.ActorRef healthCheckingActor, org.apache.pekko.event.LoggingAdapter log)
      Constructs a new HealthRouteFunction.
      Parameters:
      healthCheckingActor - the Actor selection to the health-checking actor to use.
      log - the logging adatper to use.
  • Method Details

    • get

      public org.apache.pekko.http.javadsl.server.Route get()
      Specified by:
      get in interface Supplier<org.apache.pekko.http.javadsl.server.Route>