Class KafkaProducerBuilderExtensions
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
builderIKafkaProducerBuilderThe builder.
batchSizeintThe 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
builderIKafkaProducerBuilderThe builder.
transactionalIdstringThe 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
builderIKafkaProducerBuilderThe builder.
lingerTimeSpanThe linger time duration.
Returns
- IKafkaProducerBuilder
The builder for fluent chaining.