com.netflix.astyanax.recipes.queue.shard.NoModShardingPolicy Maven / Gradle / Ivy
package com.netflix.astyanax.recipes.queue.shard;
import com.netflix.astyanax.recipes.queue.Message;
import com.netflix.astyanax.recipes.queue.MessageQueueMetadata;
public class NoModShardingPolicy implements ModShardPolicy {
private static NoModShardingPolicy instance = new NoModShardingPolicy();
public static NoModShardingPolicy getInstance() {
return instance;
}
@Override
public int getMessageShard(Message message, MessageQueueMetadata settings) {
return 0;
}
}