Table of Contents

Class KafkaProducerBuilderExtensions

Namespace
Excalibur.Dispatch.Transport.Kafka
Assembly
Excalibur.Dispatch.Transport.Kafka.dll

Extension methods for IKafkaProducerBuilder.

public static class KafkaProducerBuilderExtensions
Inheritance
KafkaProducerBuilderExtensions
Inherited Members

Methods

BatchSize(IKafkaProducerBuilder, int)

Sets the maximum batch size in bytes.

public static IKafkaProducerBuilder BatchSize(this IKafkaProducerBuilder builder, int batchSize)

Parameters

builder IKafkaProducerBuilder

The builder.

batchSize int

The maximum size of a message batch.

Returns

IKafkaProducerBuilder

The builder for fluent chaining.

EnableTransactions(IKafkaProducerBuilder, string)

Enables transactional messaging with the specified transactional ID.

public static IKafkaProducerBuilder EnableTransactions(this IKafkaProducerBuilder builder, string transactionalId)

Parameters

builder IKafkaProducerBuilder

The builder.

transactionalId string

The transactional ID for exactly-once processing.

Returns

IKafkaProducerBuilder

The builder for fluent chaining.

LingerMs(IKafkaProducerBuilder, TimeSpan)

Sets the maximum time to wait for a batch to fill before sending.

public static IKafkaProducerBuilder LingerMs(this IKafkaProducerBuilder builder, TimeSpan linger)

Parameters

builder IKafkaProducerBuilder

The builder.

linger TimeSpan

The linger time duration.

Returns

IKafkaProducerBuilder

The builder for fluent chaining.