Interface IPartitionSelectorStrategy
Strategy for determining the partition to which a message should be sent.
[Obsolete("This feature will be removed in the next major version. See https://steeltoe.io/docs/v3/obsolete for details.")]
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