public class RedisQueues
extends java.lang.Object
implements java.io.Closeable
| Constructor and Description |
|---|
RedisQueues(java.time.Clock clock,
redis.clients.jedis.commands.JedisCommands quorumConn,
redis.clients.jedis.commands.JedisCommands nonQuorumConn,
java.lang.String redisKeyPrefix,
com.netflix.dyno.queues.ShardSupplier shardSupplier,
int unackTime,
int unackHandlerIntervalInMS,
ShardingStrategy shardingStrategy) |
RedisQueues(redis.clients.jedis.commands.JedisCommands quorumConn,
redis.clients.jedis.commands.JedisCommands nonQuorumConn,
java.lang.String redisKeyPrefix,
com.netflix.dyno.queues.ShardSupplier shardSupplier,
int unackTime,
int unackHandlerIntervalInMS) |
RedisQueues(redis.clients.jedis.commands.JedisCommands quorumConn,
redis.clients.jedis.commands.JedisCommands nonQuorumConn,
java.lang.String redisKeyPrefix,
com.netflix.dyno.queues.ShardSupplier shardSupplier,
int unackTime,
int unackHandlerIntervalInMS,
ShardingStrategy shardingStrategy) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
com.netflix.dyno.queues.DynoQueue |
get(java.lang.String queueName) |
java.util.Collection<com.netflix.dyno.queues.DynoQueue> |
queues() |
public RedisQueues(redis.clients.jedis.commands.JedisCommands quorumConn,
redis.clients.jedis.commands.JedisCommands nonQuorumConn,
java.lang.String redisKeyPrefix,
com.netflix.dyno.queues.ShardSupplier shardSupplier,
int unackTime,
int unackHandlerIntervalInMS)
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 runspublic RedisQueues(redis.clients.jedis.commands.JedisCommands quorumConn,
redis.clients.jedis.commands.JedisCommands nonQuorumConn,
java.lang.String redisKeyPrefix,
com.netflix.dyno.queues.ShardSupplier shardSupplier,
int unackTime,
int unackHandlerIntervalInMS,
ShardingStrategy shardingStrategy)
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 runsshardingStrategy - sharding strategy responsible for calculating message's destination shardpublic RedisQueues(java.time.Clock clock,
redis.clients.jedis.commands.JedisCommands quorumConn,
redis.clients.jedis.commands.JedisCommands nonQuorumConn,
java.lang.String redisKeyPrefix,
com.netflix.dyno.queues.ShardSupplier shardSupplier,
int unackTime,
int unackHandlerIntervalInMS,
ShardingStrategy shardingStrategy)
clock - Time providerquorumConn - 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 runsshardingStrategy - sharding strategy responsible for calculating message's destination shardpublic com.netflix.dyno.queues.DynoQueue get(java.lang.String queueName)
queueName - Name of the queueDynoQueue,
RedisDynoQueuepublic java.util.Collection<com.netflix.dyno.queues.DynoQueue> queues()
public void close()
throws java.io.IOException
close in interface java.io.Closeableclose in interface java.lang.AutoCloseablejava.io.IOException