Class KafkaConsumerOptions
Configuration options for the Kafka consumer.
public sealed class KafkaConsumerOptions
- Inheritance
-
KafkaConsumerOptions
- Inherited Members
- Extension Methods
Properties
AdditionalConfig
Gets additional consumer configuration properties.
public Dictionary<string, string> AdditionalConfig { get; }
Property Value
AutoCommitInterval
Gets or sets the auto-commit interval.
public TimeSpan AutoCommitInterval { get; set; }
Property Value
- TimeSpan
The interval between auto-commits when enabled.
AutoOffsetReset
Gets or sets the auto offset reset policy.
public KafkaOffsetReset AutoOffsetReset { get; set; }
Property Value
- KafkaOffsetReset
Where to start consuming when no committed offset exists.
EnableAutoCommit
Gets or sets a value indicating whether to enable auto-commit.
public bool EnableAutoCommit { get; set; }
Property Value
- bool
True to auto-commit offsets; otherwise, false for manual commits.
GroupId
Gets or sets the consumer group ID.
public string GroupId { get; set; }
Property Value
- string
The consumer group identifier.
MaxBatchSize
Gets or sets the maximum number of messages to fetch in a single poll.
public int MaxBatchSize { get; set; }
Property Value
- int
The max batch size for consuming.
MaxPollInterval
Gets or sets the maximum poll interval.
public TimeSpan MaxPollInterval { get; set; }
Property Value
- TimeSpan
The maximum time between polls before the consumer is considered failed.
SessionTimeout
Gets or sets the session timeout.
public TimeSpan SessionTimeout { get; set; }
Property Value
- TimeSpan
The timeout for detecting consumer failures.