Interface IPartitionSelectorStrategy
Strategy for determining the partition to which a message should be sent.
public interface IPartitionSelectorStrategy : IServiceNameAware
- Inherited Members
Methods
SelectPartition(object, int)
Determine the partition based on a key. The partitionCount is 1 greater than the maximum value of a valid partition.
int SelectPartition(object key, int partitionCount)
Parameters
Returns
- int
the selected partition