Class RedisReducedPropagationStorage
- java.lang.Object
-
- org.swisspush.gateleen.hook.reducedpropagation.impl.RedisReducedPropagationStorage
-
- All Implemented Interfaces:
ReducedPropagationStorage
public class RedisReducedPropagationStorage extends Object implements ReducedPropagationStorage
Redis based implementation of theReducedPropagationStorageinterface.- Author:
- https://github.com/mcweba [Marc-Andre Weber]
-
-
Constructor Summary
Constructors Constructor Description RedisReducedPropagationStorage(org.swisspush.gateleen.core.redis.RedisProvider redisProvider, org.swisspush.gateleen.core.exception.GateleenExceptionFactory exceptionFactory)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description io.vertx.core.Future<Boolean>addQueue(String queue, long expireTS)io.vertx.core.Future<io.vertx.core.json.JsonObject>getQueueRequest(String queue)io.vertx.core.Future<io.vertx.redis.client.Response>removeExpiredQueues(long currentTS)io.vertx.core.Future<Void>removeQueueRequest(String queue)io.vertx.core.Future<Void>storeQueueRequest(String queue, io.vertx.core.json.JsonObject queueRequest)
-
-
-
Method Detail
-
removeExpiredQueues
public io.vertx.core.Future<io.vertx.redis.client.Response> removeExpiredQueues(long currentTS)
- Specified by:
removeExpiredQueuesin interfaceReducedPropagationStorage
-
addQueue
public io.vertx.core.Future<Boolean> addQueue(String queue, long expireTS)
- Specified by:
addQueuein interfaceReducedPropagationStorage
-
storeQueueRequest
public io.vertx.core.Future<Void> storeQueueRequest(String queue, io.vertx.core.json.JsonObject queueRequest)
- Specified by:
storeQueueRequestin interfaceReducedPropagationStorage
-
getQueueRequest
public io.vertx.core.Future<io.vertx.core.json.JsonObject> getQueueRequest(String queue)
- Specified by:
getQueueRequestin interfaceReducedPropagationStorage
-
removeQueueRequest
public io.vertx.core.Future<Void> removeQueueRequest(String queue)
- Specified by:
removeQueueRequestin interfaceReducedPropagationStorage
-
-