public class QueueInfoDAORedisImpl extends Object implements QueueInfoDAO
| Constructor and Description |
|---|
QueueInfoDAORedisImpl(Config config,
redis.clients.util.Pool<redis.clients.jedis.Jedis> jedisPool)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
long |
getPendingCount() |
long |
getProcessedCount() |
QueueInfo |
getQueueInfo(String name,
long jobOffset,
long jobCount) |
List<QueueInfo> |
getQueueInfos() |
List<String> |
getQueueNames() |
void |
removeQueue(String name)
Delete the given queue.
|
public QueueInfoDAORedisImpl(Config config, redis.clients.util.Pool<redis.clients.jedis.Jedis> jedisPool)
config - the Jesque configurationjedisPool - the pool of Jedis connectionspublic List<String> getQueueNames()
getQueueNames in interface QueueInfoDAOpublic long getPendingCount()
getPendingCount in interface QueueInfoDAOpublic long getProcessedCount()
getProcessedCount in interface QueueInfoDAOpublic List<QueueInfo> getQueueInfos()
getQueueInfos in interface QueueInfoDAOpublic QueueInfo getQueueInfo(String name, long jobOffset, long jobCount)
getQueueInfo in interface QueueInfoDAOname - the queue namejobOffset - the offset into the queuejobCount - the number of jobs to returnpublic void removeQueue(String name)
removeQueue in interface QueueInfoDAOname - the name of the queueCopyright © 2011-2015. All Rights Reserved.