public final class DuplicateCheckHandler
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkDuplicateRequest(io.vertx.redis.RedisClient redisClient,
java.lang.String uri,
io.vertx.core.buffer.Buffer buffer,
java.lang.String ttl,
io.vertx.core.Handler<java.lang.Boolean> callback)
This method checks if an entry for the provided information (uri and buffer) is stored in the redis database.
|
public static void checkDuplicateRequest(io.vertx.redis.RedisClient redisClient,
java.lang.String uri,
io.vertx.core.buffer.Buffer buffer,
java.lang.String ttl,
io.vertx.core.Handler<java.lang.Boolean> callback)
redisClient - redisClienturi - the request uribuffer - the request payloadttl - the timeToLive (in seconds) for the storage entrycallback - the result callback. Returns true if the request is a duplicate else returns false