C# (CSharp) KafkaNet Namespace

Nested Namespaces

KafkaNet.Model
KafkaNet.Protocol

Classes

Name Description
BrokerRouteSendBatch
BrokerRouter This class provides an abstraction from querying multiple Kafka servers for Metadata details and caching this data. All metadata queries are cached lazily. If metadata from a topic does not exist in cache it will be queried for using the default brokers provided in the constructor. Each Uri will be queried to get metadata information in turn until a response is received. It is recommended therefore to provide more than one Kafka Uri as this API will be able to to get metadata information even if one of the Kafka servers goes down. The metadata will stay in cache until an error condition is received indicating the metadata is out of data. This error can be in the form of a socket disconnect or an error code from a response indicating a broker no longer hosts a partition.
Consumer Provides a basic consumer of one Topic across all partitions or over a given whitelist of partitions. TODO: provide automatic offset saving when the feature is available in 0.8.2 https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol#AGuideToTheKafkaProtocol-OffsetCommit/FetchAPI
KafkaDataPayload
KafkaMetadataProvider This provider blocks while it attempts to get the MetaData configuration of the Kafka servers. If any retry errors occurs it will continue to block the downstream call and then repeatedly query kafka until the retry errors subside. This repeat call happens in a backoff manner, which each subsequent call waiting longer before a requery. Error Codes: LeaderNotAvailable = 5 NotLeaderForPartition = 6 ConsumerCoordinatorNotAvailableCode = 15 BrokerId = -1 Documentation: https://cwiki.apache.org/confluence/display/KAFKA/A+Guide+To+The+Kafka+Protocol#AGuideToTheKafkaProtocol-MetadataResponse
KafkaTcpSocket The TcpSocket provides an abstraction from the main driver from having to handle connection to and reconnections with a server. The interface is intentionally limited to only read/write. All connection and reconnect details are handled internally.
MetadataQueries This class provides a set of common queries that are useful for both the Consumer and Producer classes.
MetadataValidationResult
Producer Provides a simplified high level API for producing messages on a topic.
SocketPayloadReadTask
SocketPayloadSendTask
TopicMessage
TopicSearchResult