public class RoundRobinStrategy extends java.lang.Object implements ShardingStrategy
Constructor and Description |
---|
RoundRobinStrategy() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getNextShard(java.util.List<java.lang.String> allShards,
com.netflix.dyno.queues.Message message)
Get shard based on round robin strategy.
|
public java.lang.String getNextShard(java.util.List<java.lang.String> allShards, com.netflix.dyno.queues.Message message)
getNextShard
in interface ShardingStrategy
allShards
- message
- is ignored in round robin strategy