Interface IPartitionSelectorStrategy
Strategy for determining the partition to which a message should be sent.
Namespace: Steeltoe.Stream.Binder
Assembly: Steeltoe.Stream.Abstractions.dll
Syntax
public interface IPartitionSelectorStrategy
Methods
| Edit this page View SourceSelectPartition(Object, Int32)
Determine the partition based on a key. The partitionCount is 1 greater than the maximum value of a valid partition.
Declaration
int SelectPartition(object key, int partitionCount)
Parameters
Type | Name | Description |
---|---|---|
System.Object | key | the key |
System.Int32 | partitionCount | the number of partitions |
Returns
Type | Description |
---|---|
System.Int32 | the selected partition |