C# 클래스 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.
상속: IPartitioner
파일 보기 프로젝트 열기: paralect/brod

공개 메소드들

메소드 설명
SelectPartition ( object key, int numberOfPartitions ) : int

메소드 상세

SelectPartition() 공개 메소드

public SelectPartition ( object key, int numberOfPartitions ) : int
key object
numberOfPartitions int
리턴 int