T - public class RedisqConsumer<T extends Document> extends Object implements QueueConsumer<T>
| Constructor and Description |
|---|
RedisqConsumer(java.util.function.Consumer<T> consumer,
redis.clients.util.Pool<redis.clients.jedis.Jedis> jedisPool,
Redisq<T> tRedisq)
TODO: docs
|
| Modifier and Type | Method and Description |
|---|---|
void |
process(T element)
This method implements the logic for consuming documents from the queue.
|
public RedisqConsumer(java.util.function.Consumer<T> consumer, redis.clients.util.Pool<redis.clients.jedis.Jedis> jedisPool, Redisq<T> tRedisq)
consumer - jedisPool - tRedisq - public void process(T element)
QueueConsumerprocess in interface QueueConsumer<T extends Document>element - Document read from the queueCopyright © 2017. All rights reserved.