Toggle navigation
Hot Examples
FR
EN
RU
DE
FR
ES
PT
IT
JP
ZH
KO
C#
PHP
C#
Java
Go
C++
Python
JS
TS
Rechercher
Accueil
Brod
Producers
DefaultPartitioner
C# Class Brod.Producers.DefaultPartitioner
DefaultPartitioner uses hash code of key (if key was provided) or just random number (if key wasn't provided) That means, that Producer requests with the same key go to the same partition.
Inheritance:
IPartitioner
Afficher le fichier
Open project: paralect/brod
Méthodes publiques
Méthode
Description
SelectPartition
(
object
key
,
int
numberOfPartitions
) :
int
Method Details
SelectPartition()
public
méthode
public
SelectPartition
(
object
key
,
int
numberOfPartitions
) :
int
key
object
numberOfPartitions
int
Résultat
int