C# 클래스 Brod.Consumers.ConsumerConnector

파일 보기 프로젝트 열기: paralect/brod 1 사용 예제들

공개 메소드들

메소드 설명
ConsumerConnector ( String stateStorageDirectory, String brokerAddress, BrokerInfoResponse configuration, ZMQ context ) : System
CreateMessageStreams ( Int32>.Dictionary topicToStreamCount ) : List>.Dictionary
CreateMessageStreams ( String topic, Int32 numberOfStreams ) : List
GetNumberOfPartitionsForTopic ( String topic ) : Int32
ValidateStreamNumber ( String topic, Int32 numberOfStreams ) : void

Returns true of partition number is valid for current broker configuration

ValidateTopicToStreamDictionary ( Int32>.Dictionary topicToStreamCount ) : void

비공개 메소드들

메소드 설명
BuildStreamsForTopic ( String topic, Int32 numberOfStreams ) : List
GetPartitions ( Int32 fromIncluding, Int32 count ) : List

메소드 상세

ConsumerConnector() 공개 메소드

public ConsumerConnector ( String stateStorageDirectory, String brokerAddress, BrokerInfoResponse configuration, ZMQ context ) : System
stateStorageDirectory String
brokerAddress String
configuration Brod.Contracts.Responses.BrokerInfoResponse
context ZMQ
리턴 System

CreateMessageStreams() 공개 메소드

public CreateMessageStreams ( Int32>.Dictionary topicToStreamCount ) : List>.Dictionary
topicToStreamCount Int32>.Dictionary
리턴 List>.Dictionary

CreateMessageStreams() 공개 메소드

public CreateMessageStreams ( String topic, Int32 numberOfStreams ) : List
topic String
numberOfStreams System.Int32
리턴 List

GetNumberOfPartitionsForTopic() 공개 메소드

public GetNumberOfPartitionsForTopic ( String topic ) : Int32
topic String
리턴 System.Int32

ValidateStreamNumber() 공개 메소드

Returns true of partition number is valid for current broker configuration
public ValidateStreamNumber ( String topic, Int32 numberOfStreams ) : void
topic String
numberOfStreams System.Int32
리턴 void

ValidateTopicToStreamDictionary() 공개 메소드

public ValidateTopicToStreamDictionary ( Int32>.Dictionary topicToStreamCount ) : void
topicToStreamCount Int32>.Dictionary
리턴 void