Class QueuingHandler

  • All Implemented Interfaces:
    io.vertx.core.Handler<io.vertx.core.buffer.Buffer>

    public class QueuingHandler
    extends Object
    implements io.vertx.core.Handler<io.vertx.core.buffer.Buffer>
    Queues requests.
    Author:
    https://github.com/lbovet [Laurent Bovet]
    • Constructor Detail

      • QueuingHandler

        public QueuingHandler​(io.vertx.core.Vertx vertx,
                              io.vertx.redis.client.RedisAPI redisAPI,
                              io.vertx.core.http.HttpServerRequest request,
                              org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler)
      • QueuingHandler

        public QueuingHandler​(io.vertx.core.Vertx vertx,
                              io.vertx.redis.client.RedisAPI redisAPI,
                              io.vertx.core.http.HttpServerRequest request,
                              RequestQueue requestQueue)
    • Method Detail

      • isQueued

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

        public void handle​(io.vertx.core.buffer.Buffer buffer)
        Specified by:
        handle in interface io.vertx.core.Handler<io.vertx.core.buffer.Buffer>
      • cleanup

        @Deprecated
        public static void cleanup​(io.vertx.core.Vertx vertx)
        Deprecated.
        Use vertx-redisques version 2.2.1 or higher, since redisques makes the cleanup automatically
        Parameters:
        vertx - the vertx instance