public class RedisQueues
extends java.lang.Object
| Constructor and Description |
|---|
RedisQueues(redis.clients.jedis.JedisCommands quorumConn,
redis.clients.jedis.JedisCommands nonQuorumConn,
java.lang.String redisKeyPrefix,
ShardSupplier shardSupplier,
int unackTime,
int unackHandlerIntervalInMS,
int dynoOpThreadCount) |
| Modifier and Type | Method and Description |
|---|---|
DynoQueue |
get(java.lang.String queueName) |
java.util.Collection<DynoQueue> |
queues() |
public RedisQueues(redis.clients.jedis.JedisCommands quorumConn,
redis.clients.jedis.JedisCommands nonQuorumConn,
java.lang.String redisKeyPrefix,
ShardSupplier shardSupplier,
int unackTime,
int unackHandlerIntervalInMS,
int dynoOpThreadCount)
quorumConn - Dyno connection with dc_quorum enablednonQuorumConn - Dyno connection to local RedisredisKeyPrefix - prefix applied to the Redis keysshardSupplier - Provider for the shards for the queues createdunackTime - Time in millisecond within which a message needs to be acknowledged by the client, after which the message is re-queued.unackHandlerIntervalInMS - Time in millisecond at which the un-acknowledgement processor runsdynoOpThreadCount - no. of threads that are used to make the calls to dyno. All the queues share the threadpool executor created with this count.public DynoQueue get(java.lang.String queueName)
queueName - Name of the queueDynoQueue,
RedisDynoQueuepublic java.util.Collection<DynoQueue> queues()