Class KafkaEndpointOptions

Namespace: redb.Route.Kafka
Assembly: redb.Route.Kafka.dll

Typed options for . Bound from URI query parameters via reflection.

public sealed class KafkaEndpointOptions : EndpointOptions

Inheritance

Object→EndpointOptions→KafkaEndpointOptions

Inherited Members

Properties

AckMode

When the offset is committed (). Manual (default): inline right after a turn

public AckMode AckMode { get; set; }

Acks

Acknowledgment level: None, Leader, All. Default All, as in the Kafka 3 client and Camel 4: a send is confirmed

public string Acks { get; set; }

AdditionalProperties

Additional librdkafka properties not exposed as typed settings.

public Dictionary<string, string> AdditionalProperties { get; set; }

AutoOffsetReset

Where to start consuming when no committed offset exists.

public string AutoOffsetReset { get; set; }

Batching

Batch mode (Apache Camel batching): the route gets one exchange whose body is a List<IMessage>

public bool Batching { get; set; }

BatchingIntervalMs

Batch mode only: a batch is sent on once this many milliseconds have passed since its first record, however

public int? BatchingIntervalMs { get; set; }

BatchSize

Max batch size in bytes.

public int? BatchSize { get; set; }

BreakOnFirstError

Stop batch processing on first error.

public bool BreakOnFirstError { get; set; }

Brokers

Comma-separated list of Kafka broker addresses (required).

public string Brokers { get; set; }

CompressionType

Compression: None, Gzip, Snappy, Lz4, Zstd.

public string? CompressionType { get; set; }

ConnectionFactory

Name of in the route registry.

[RegistryReference(typeof(KafkaConnectionFactory))]
public string? ConnectionFactory { get; set; }

EnableIdempotence

Idempotent producer (enable.idempotence): the broker does not write a retried send twice. Unset, it follows

public bool? EnableIdempotence { get; set; }

GroupId

Consumer group identifier (required for consumers).

public string? GroupId { get; set; }

GroupInstanceId

Static group instance ID. Avoids rebalance storms in K8s rolling deploys.

public string? GroupInstanceId { get; set; }

HeaderFilterStrategy

A registry reference (#name) to an that decides

[RegistryReference(typeof(IHeaderFilterStrategy))]
public string? HeaderFilterStrategy { get; set; }

HeartbeatIntervalMs

Heartbeat interval in ms. Should be < SessionTimeoutMs/3.

public int? HeartbeatIntervalMs { get; set; }

IsolationLevel

Isolation level: ReadUncommitted, ReadCommitted. Unset, librdkafka's default ReadCommitted: records of

public string? IsolationLevel { get; set; }

Key

Producer: the key of every sent record, a constant or a ${...} expression (Apache Camel's key). It takes

public string? Key { get; set; }

LingerMs

Batching delay in ms. Higher = more batching throughput.

public int? LingerMs { get; set; }

MaxBatchMessages

Largest number of records in a batch (default 500, Camel's maxPollRecords default). Batch mode only.

public int? MaxBatchMessages { get; set; }

MaxPollIntervalMs

Max time between polls in ms. Prevents rebalance during slow processing.

public int? MaxPollIntervalMs { get; set; }

MessageTimeoutMs

Total delivery timeout in ms (includes retries).

public int? MessageTimeoutMs { get; set; }

PartitionAssignmentStrategy

Partition assignment strategy: Range, RoundRobin, CooperativeSticky.

public string? PartitionAssignmentStrategy { get; set; }

PartitionKey

Producer: the partition every record goes to (Apache Camel's partitionKey). It takes precedence over the

public int? PartitionKey { get; set; }

PartitionNumber

Consumer: reads this one partition (Assign) instead of joining the group's assignment. A producer refuses it: its

public int? PartitionNumber { get; set; }

PollTimeoutMs

How long one poll waits for a record, in milliseconds (default 1000). In batch mode the idle timeout, as in Camel:

public int PollTimeoutMs { get; set; }

RecordMetadata

Producer: put the metadata of what was sent in the header, a list with one

public bool RecordMetadata { get; set; }

Retries

Number of retries for failed sends.

public int Retries { get; set; }

SaslMechanism

SASL mechanism (Plain, ScramSha256, ScramSha512, etc.).

public string? SaslMechanism { get; set; }

SaslPassword

SASL password.

public string? SaslPassword { get; set; }

SaslUsername

SASL username.

public string? SaslUsername { get; set; }

SecurityProtocol

Security protocol for broker communication.

public string SecurityProtocol { get; set; }

SeekTo

Seek to "beginning" or "end" on first start.

public string? SeekTo { get; set; }

SessionTimeoutMs

Session timeout in ms. Lower = faster dead-consumer detection.

public int? SessionTimeoutMs { get; set; }

SslCaLocation

CA certificate file path for SSL.

public string? SslCaLocation { get; set; }

SslCertificateLocation

Client certificate file path (for mTLS).

public string? SslCertificateLocation { get; set; }

SslEndpointIdentificationAlgorithm

SSL endpoint identification: "https" verifies the broker hostname against its certificate,

public string? SslEndpointIdentificationAlgorithm { get; set; }

SslKeyLocation

Client private key file path (for mTLS).

public string? SslKeyLocation { get; set; }

SslKeyPassword

Client private key passphrase.

public string? SslKeyPassword { get; set; }

TopicIsPattern

Interpret topic name as a regex pattern.

public bool TopicIsPattern { get; set; }

Transacted

Whether the send joins the enclosing transaction block (.Transacted() /

public bool? Transacted { get; set; }

TransactionalIdPrefix

Switches the producer to Kafka transactions (transactional.id + InitTransactions). The sends it

public string? TransactionalIdPrefix { get; set; }

Methods

UnknownParameterHint(string)

A connector's own words for a parameter name it does not know — typically a name it used to

protected override string? UnknownParameterHint(string name)

Validate()

Validates required parameters and constraints. Called after BindFromUri.

public override void Validate()