Table of Contents

Interface IPartitionSelectorStrategy

Namespace
Steeltoe.Stream.Binder
Assembly
Steeltoe.Stream.Abstractions.dll

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

key object

the key

partitionCount int

the number of partitions

Returns

int

the selected partition