Class QueuingHandler
- java.lang.Object
-
- org.swisspush.gateleen.queue.queuing.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]
-
-
Field Summary
Fields Modifier and Type Field Description static StringDUPLICATE_CHECK_HEADERstatic StringQUEUE_HEADER
-
Constructor Summary
Constructors Constructor Description QueuingHandler(io.vertx.core.Vertx vertx, RedisProvider redisProvider, io.vertx.core.http.HttpServerRequest request, org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler)QueuingHandler(io.vertx.core.Vertx vertx, RedisProvider redisProvider, io.vertx.core.http.HttpServerRequest request, org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler, QueueSplitter queueSplitter)QueuingHandler(io.vertx.core.Vertx vertx, RedisProvider redisProvider, io.vertx.core.http.HttpServerRequest request, RequestQueue requestQueue, QueueSplitter queueSplitter)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static voidcleanup(io.vertx.core.Vertx vertx)Deprecated.Use vertx-redisques version 2.2.1 or higher, since redisques makes the cleanup automaticallyvoidhandle(io.vertx.core.buffer.Buffer buffer)static booleanisQueued(io.vertx.core.http.HttpServerRequest request)
-
-
-
Field Detail
-
QUEUE_HEADER
public static final String QUEUE_HEADER
- See Also:
- Constant Field Values
-
DUPLICATE_CHECK_HEADER
public static final String DUPLICATE_CHECK_HEADER
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
QueuingHandler
public QueuingHandler(io.vertx.core.Vertx vertx, RedisProvider redisProvider, io.vertx.core.http.HttpServerRequest request, org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler)
-
QueuingHandler
public QueuingHandler(io.vertx.core.Vertx vertx, RedisProvider redisProvider, io.vertx.core.http.HttpServerRequest request, org.swisspush.gateleen.monitoring.MonitoringHandler monitoringHandler, QueueSplitter queueSplitter)
-
QueuingHandler
public QueuingHandler(io.vertx.core.Vertx vertx, RedisProvider redisProvider, io.vertx.core.http.HttpServerRequest request, RequestQueue requestQueue, QueueSplitter queueSplitter)
-
-
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:
handlein interfaceio.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
-
-