Table of Contents

Class ProducerConfigBuilder

Namespace
MASES.KNet.Producer
Assembly
MASES.KNet.dll

Builder for ProducerConfig

public class ProducerConfigBuilder : CommonClientConfigsBuilder<ProducerConfigBuilder>, INotifyPropertyChanged, IGenericSerDesFactory, IDisposable
Inheritance
ProducerConfigBuilder
Implements
Inherited Members
Extension Methods

Properties

Acks

Manages ACKS_CONFIG

public ProducerConfigBuilder.AcksTypes Acks { get; set; }

Property Value

ProducerConfigBuilder.AcksTypes

BatchSize

public int BatchSize { get; set; }

Property Value

int

BufferMemory

public long BufferMemory { get; set; }

Property Value

long

CompressionType

public ProducerConfigBuilder.CompressionTypes CompressionType { get; set; }

Property Value

ProducerConfigBuilder.CompressionTypes

DeliveryTimeoutMs

public int DeliveryTimeoutMs { get; set; }

Property Value

int

EnableIdempotence

public bool EnableIdempotence { get; set; }

Property Value

bool

InterceptorClasses

public List<Class> InterceptorClasses { get; set; }

Property Value

List<Class>

KeySerializerClass

public string KeySerializerClass { get; set; }

Property Value

string

LingerMs

public long LingerMs { get; set; }

Property Value

long

MaxBlockMs

public long MaxBlockMs { get; set; }

Property Value

long

MaxInFlightRequestPerConnection

public int MaxInFlightRequestPerConnection { get; set; }

Property Value

int

MaxRequestSize

public int MaxRequestSize { get; set; }

Property Value

int

MetadataMaxIdle

public long MetadataMaxIdle { get; set; }

Property Value

long

PartitionerAvailabilityTimeoutMs

public long PartitionerAvailabilityTimeoutMs { get; set; }

Property Value

long

PartitionerClass

public Class PartitionerClass { get; set; }

Property Value

Class

PartitionerIgnoreKeys

public bool PartitionerIgnoreKeys { get; set; }

Property Value

bool

SecurityProviders

public string SecurityProviders { get; set; }

Property Value

string

TransactionTimeout

public int TransactionTimeout { get; set; }

Property Value

int

TransactionalId

public string TransactionalId { get; set; }

Property Value

string

ValueSerializerClass

public string ValueSerializerClass { get; set; }

Property Value

string

Methods

WithAcks(AcksTypes)

Manages ACKS_CONFIG

public ProducerConfigBuilder WithAcks(ProducerConfigBuilder.AcksTypes acks)

Parameters

acks ProducerConfigBuilder.AcksTypes

Returns

ProducerConfigBuilder

WithBatchSize(int)

public ProducerConfigBuilder WithBatchSize(int batchSize)

Parameters

batchSize int

Returns

ProducerConfigBuilder

WithBufferMemory(long)

public ProducerConfigBuilder WithBufferMemory(long bufferMemory)

Parameters

bufferMemory long

Returns

ProducerConfigBuilder

WithCompressionType(CompressionTypes)

public ProducerConfigBuilder WithCompressionType(ProducerConfigBuilder.CompressionTypes compressionType)

Parameters

compressionType ProducerConfigBuilder.CompressionTypes

Returns

ProducerConfigBuilder

WithDeliveryTimeoutMs(int)

public ProducerConfigBuilder WithDeliveryTimeoutMs(int deliveryTimeoutMs)

Parameters

deliveryTimeoutMs int

Returns

ProducerConfigBuilder

WithEnableIdempotence(bool)

public ProducerConfigBuilder WithEnableIdempotence(bool enableIdempotence)

Parameters

enableIdempotence bool

Returns

ProducerConfigBuilder

WithInterceptorClasses(List<Class>)

public ProducerConfigBuilder WithInterceptorClasses(List<Class> interceptorClasses)

Parameters

interceptorClasses List<Class>

Returns

ProducerConfigBuilder

WithKeySerializerClass(string)

public ProducerConfigBuilder WithKeySerializerClass(string keySerializerClass)

Parameters

keySerializerClass string

Returns

ProducerConfigBuilder

WithLingerMs(long)

public ProducerConfigBuilder WithLingerMs(long lingerMs)

Parameters

lingerMs long

Returns

ProducerConfigBuilder

WithMaxBlockMs(long)

public ProducerConfigBuilder WithMaxBlockMs(long maxBlockMs)

Parameters

maxBlockMs long

Returns

ProducerConfigBuilder

WithMaxInFlightRequestPerConnection(int)

public ProducerConfigBuilder WithMaxInFlightRequestPerConnection(int maxInFlightRequestPerConnection)

Parameters

maxInFlightRequestPerConnection int

Returns

ProducerConfigBuilder

WithMaxRequestSize(int)

public ProducerConfigBuilder WithMaxRequestSize(int maxRequestSize)

Parameters

maxRequestSize int

Returns

ProducerConfigBuilder

WithMetadataMaxIdle(long)

public ProducerConfigBuilder WithMetadataMaxIdle(long metadataMaxIdle)

Parameters

metadataMaxIdle long

Returns

ProducerConfigBuilder

WithPartitionerAvailabilityTimeoutMs(long)

public ProducerConfigBuilder WithPartitionerAvailabilityTimeoutMs(long partitionerAvailabilityTimeoutMs)

Parameters

partitionerAvailabilityTimeoutMs long

Returns

ProducerConfigBuilder

WithPartitionerClass(Class)

public ProducerConfigBuilder WithPartitionerClass(Class partitionerClass)

Parameters

partitionerClass Class

Returns

ProducerConfigBuilder

WithPartitionerIgnoreKeys(bool)

public ProducerConfigBuilder WithPartitionerIgnoreKeys(bool partitionerIgnoreKeys)

Parameters

partitionerIgnoreKeys bool

Returns

ProducerConfigBuilder

WithSecurityProviders(string)

public ProducerConfigBuilder WithSecurityProviders(string securityProviders)

Parameters

securityProviders string

Returns

ProducerConfigBuilder

WithTransactionTimeout(int)

public ProducerConfigBuilder WithTransactionTimeout(int transactionTimeout)

Parameters

transactionTimeout int

Returns

ProducerConfigBuilder

WithTransactionalId(string)

public ProducerConfigBuilder WithTransactionalId(string transactionalId)

Parameters

transactionalId string

Returns

ProducerConfigBuilder

WithValueSerializerClass(string)

public ProducerConfigBuilder WithValueSerializerClass(string valueSerializerClass)

Parameters

valueSerializerClass string

Returns

ProducerConfigBuilder