C# Class Brod.Consumers.ConsumerConnector

Afficher le fichier Open project: paralect/brod Class Usage Examples

Méthodes publiques

Méthode Description
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

Private Methods

Méthode Description
BuildStreamsForTopic ( String topic, Int32 numberOfStreams ) : List
GetPartitions ( Int32 fromIncluding, Int32 count ) : List

Method Details

ConsumerConnector() public méthode

public ConsumerConnector ( String stateStorageDirectory, String brokerAddress, BrokerInfoResponse configuration, ZMQ context ) : System
stateStorageDirectory String
brokerAddress String
configuration Brod.Contracts.Responses.BrokerInfoResponse
context ZMQ
Résultat System

CreateMessageStreams() public méthode

public CreateMessageStreams ( Int32>.Dictionary topicToStreamCount ) : List>.Dictionary
topicToStreamCount Int32>.Dictionary
Résultat List>.Dictionary

CreateMessageStreams() public méthode

public CreateMessageStreams ( String topic, Int32 numberOfStreams ) : List
topic String
numberOfStreams System.Int32
Résultat List

GetNumberOfPartitionsForTopic() public méthode

public GetNumberOfPartitionsForTopic ( String topic ) : Int32
topic String
Résultat System.Int32

ValidateStreamNumber() public méthode

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

ValidateTopicToStreamDictionary() public méthode

public ValidateTopicToStreamDictionary ( Int32>.Dictionary topicToStreamCount ) : void
topicToStreamCount Int32>.Dictionary
Résultat void