
com.netflix.astyanax.recipes.queue.shard.ModShardPolicy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of astyanax-queue Show documentation
Show all versions of astyanax-queue Show documentation
astyanax-queue developed by Netflix
package com.netflix.astyanax.recipes.queue.shard;
import com.netflix.astyanax.recipes.queue.Message;
import com.netflix.astyanax.recipes.queue.MessageQueueMetadata;
/**
* Policy for mod sharding within a time partition
*
* @author elandau
*
*/
public interface ModShardPolicy {
/**
* Return the mod shard for the specified message. The shard can be based
* on any message attribute such as the schedule time or the message key
* @param message
* @return
*/
int getMessageShard(Message message, MessageQueueMetadata settings);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy