Brod.Consumers.ConsumerConnector.GetNumberOfPartitionsForTopic C# (CSharp) Метод

GetNumberOfPartitionsForTopic() публичный Метод

public GetNumberOfPartitionsForTopic ( String topic ) : Int32
topic String
Результат System.Int32
        public Int32 GetNumberOfPartitionsForTopic(String topic)
        {
            // Get number of partitions for specified topic
            Int32 partitions;
            if (!_configuration.NumberOfPartitionsPerTopic.TryGetValue(topic, out partitions))
                partitions = _configuration.NumberOfPartitions;

            return partitions;
        }