Class PackingHandler


  • public class PackingHandler
    extends Object
    Extract requests from a packing request and forward them to a handler.
    Author:
    https://github.com/mcweba [Marc-Andre Weber]
    • Constructor Detail

      • PackingHandler

        public PackingHandler​(io.vertx.core.Vertx vertx,
                              String queuePrefix,
                              String redisquesAddress,
                              String groupRequestHeader,
                              PackingValidator validator,
                              GateleenExceptionFactory exceptionFactory)
        Constructs a new PackingHandler.
        Parameters:
        vertx - the Vertx instance
        queuePrefix - the prefix for the queue names
        redisquesAddress - the address of the vertx-redisques
        groupRequestHeader - the header holding the user group information
        validator - the PackingValidator instance
        exceptionFactory - the GateleenExceptionFactory instance
    • Method Detail

      • isPacked

        public boolean isPacked​(io.vertx.core.http.HttpServerRequest request)
      • setMeterRegistry

        public void setMeterRegistry​(io.micrometer.core.instrument.MeterRegistry meterRegistry)
      • handle

        public boolean handle​(io.vertx.core.http.HttpServerRequest request)