Expand description
Kafka Client - A mid-level abstraction for a kafka cluster allowing building higher level constructs.
The entry point into this module is KafkaClient obtained by a
call to KafkaClient::new().
Modules§
- fetch
- A representation of fetched messages from Kafka.
- metadata
- Types related to topic metadata for introspection by clients.
Example:
KafkaClient::topics().
Structs§
- Commit
Offset - Data point identifying a particular topic partition offset to be
committed.
See
KafkaClient::commit_offsets. - Fetch
Group Offset - Data point identifying a topic partition to fetch a group’s offset
for. See
KafkaClient::fetch_group_offsets. - Fetch
Partition - Partition related request data for fetching messages.
See
KafkaClient::fetch_messages. - Kafka
Client - Client struct keeping track of brokers and topic metadata.
- Partition
Offset - A retrieved offset for a particular partition in the context of an already known topic.
- Produce
Confirm - A confirmation of messages sent back by the Kafka broker to confirm delivery of producer messages.
- Produce
Message - Message data to be sent/produced to a particular topic partition.
See
KafkaClient::produce_messagesandProducer::send. - Produce
Partition Confirm - A confirmation of messages sent back by the Kafka broker to confirm delivery of producer messages for a particular topic.
Enums§
- Compression
- Compression types supported by kafka. The numeral values of this enumeration correspond to the compression encoding in the attributes of a Message in the protocol.
- Fetch
Offset - Possible values when querying a topic’s offset.
See
KafkaClient::fetch_offsets. - Group
Offset Storage - Defines the available storage types to utilize when fetching or
committing group offsets. See also
KafkaClient::set_group_offset_storage. - Required
Acks - Possible choices on acknowledgement requirements when
producing/sending messages to Kafka. See
KafkaClient::produce_messages.
Constants§
- DEFAULT_
COMPRESSION - The default value for
KafkaClient::set_compression(..) - DEFAULT_
CONNECTION_ IDLE_ TIMEOUT_ MILLIS - The default value for
KafkaClient::set_connection_idle_timeout(..) - DEFAULT_
FETCH_ CRC_ VALIDATION - The default value for
KafkaClient::set_fetch_crc_validation(..) - DEFAULT_
FETCH_ MAX_ BYTES_ PER_ PARTITION - The default value for
KafkaClient::set_fetch_max_bytes(..) - DEFAULT_
FETCH_ MAX_ WAIT_ TIME_ MILLIS - The default value for
KafkaClient::set_fetch_max_wait_time(..) - DEFAULT_
FETCH_ MIN_ BYTES - The default value for
KafkaClient::set_fetch_min_bytes(..) - DEFAULT_
GROUP_ OFFSET_ STORAGE - The default value for
KafkaClient::set_group_offset_storage(..) - DEFAULT_
RETRY_ BACKOFF_ TIME_ MILLIS - The default value for
KafkaClient::set_retry_backoff_time(..) - DEFAULT_
RETRY_ MAX_ ATTEMPTS - The default value for
KafkaClient::set_retry_max_attempts(..)