public final class DuplicateCheckHandler extends Object
| Modifier and Type | Method and Description |
|---|---|
static void |
checkDuplicateRequest(io.vertx.redis.RedisClient redisClient,
String uri,
io.vertx.core.buffer.Buffer buffer,
String ttl,
io.vertx.core.Handler<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,
String uri,
io.vertx.core.buffer.Buffer buffer,
String ttl,
io.vertx.core.Handler<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 falseCopyright © 2016–2019. All rights reserved.