Class ProducerConfigBuilder
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
BatchSize
Manages BATCH_SIZE_CONFIG
public int BatchSize { get; set; }
Property Value
BufferMemory
Manages BUFFER_MEMORY_CONFIG
public long BufferMemory { get; set; }
Property Value
CompressionType
Manages COMPRESSION_TYPE_CONFIG
public ProducerConfigBuilder.CompressionTypes CompressionType { get; set; }
Property Value
DeliveryTimeoutMs
Manages DELIVERY_TIMEOUT_MS_CONFIG
public int DeliveryTimeoutMs { get; set; }
Property Value
EnableIdempotence
Manages ENABLE_IDEMPOTENCE_CONFIG
public bool EnableIdempotence { get; set; }
Property Value
InterceptorClasses
Manages INTERCEPTOR_CLASSES_CONFIG
public List<Class> InterceptorClasses { get; set; }
Property Value
KeySerializerClass
Manages KEY_SERIALIZER_CLASS_CONFIG
public string KeySerializerClass { get; set; }
Property Value
LingerMs
Manages LINGER_MS_CONFIG
public long LingerMs { get; set; }
Property Value
MaxBlockMs
Manages MAX_BLOCK_MS_CONFIG
public long MaxBlockMs { get; set; }
Property Value
MaxInFlightRequestPerConnection
public int MaxInFlightRequestPerConnection { get; set; }
Property Value
MaxRequestSize
Manages MAX_REQUEST_SIZE_CONFIG
public int MaxRequestSize { get; set; }
Property Value
MetadataMaxIdle
Manages METADATA_MAX_IDLE_CONFIG
public long MetadataMaxIdle { get; set; }
Property Value
PartitionerAvailabilityTimeoutMs
public long PartitionerAvailabilityTimeoutMs { get; set; }
Property Value
PartitionerClass
Manages PARTITIONER_CLASS_CONFIG
public Class PartitionerClass { get; set; }
Property Value
PartitionerIgnoreKeys
Manages PARTITIONER_IGNORE_KEYS_CONFIG
public bool PartitionerIgnoreKeys { get; set; }
Property Value
SecurityProviders
Manages SECURITY_PROVIDERS_CONFIG
public string SecurityProviders { get; set; }
Property Value
TransactionTimeout
Manages TRANSACTION_TIMEOUT_CONFIG
public int TransactionTimeout { get; set; }
Property Value
TransactionalId
Manages TRANSACTIONAL_ID_CONFIG
public string TransactionalId { get; set; }
Property Value
ValueSerializerClass
Manages VALUE_SERIALIZER_CLASS_CONFIG
public string ValueSerializerClass { get; set; }
Property Value
Methods
WithAcks(AcksTypes)
Manages ACKS_CONFIG
public ProducerConfigBuilder WithAcks(ProducerConfigBuilder.AcksTypes acks)
Parameters
Returns
WithBatchSize(int)
Manages BATCH_SIZE_CONFIG
public ProducerConfigBuilder WithBatchSize(int batchSize)
Parameters
batchSize
int
Returns
WithBufferMemory(long)
Manages BUFFER_MEMORY_CONFIG
public ProducerConfigBuilder WithBufferMemory(long bufferMemory)
Parameters
bufferMemory
long
Returns
WithCompressionType(CompressionTypes)
Manages COMPRESSION_TYPE_CONFIG
public ProducerConfigBuilder WithCompressionType(ProducerConfigBuilder.CompressionTypes compressionType)
Parameters
compressionType
ProducerConfigBuilder.CompressionTypes
Returns
WithDeliveryTimeoutMs(int)
Manages DELIVERY_TIMEOUT_MS_CONFIG
public ProducerConfigBuilder WithDeliveryTimeoutMs(int deliveryTimeoutMs)
Parameters
deliveryTimeoutMs
int
Returns
WithEnableIdempotence(bool)
Manages ENABLE_IDEMPOTENCE_CONFIG
public ProducerConfigBuilder WithEnableIdempotence(bool enableIdempotence)
Parameters
enableIdempotence
bool
Returns
WithInterceptorClasses(List<Class>)
Manages INTERCEPTOR_CLASSES_CONFIG
public ProducerConfigBuilder WithInterceptorClasses(List<Class> interceptorClasses)
Parameters
Returns
WithKeySerializerClass(string)
Manages KEY_SERIALIZER_CLASS_CONFIG
public ProducerConfigBuilder WithKeySerializerClass(string keySerializerClass)
Parameters
keySerializerClass
string
Returns
WithLingerMs(long)
Manages LINGER_MS_CONFIG
public ProducerConfigBuilder WithLingerMs(long lingerMs)
Parameters
lingerMs
long
Returns
WithMaxBlockMs(long)
Manages MAX_BLOCK_MS_CONFIG
public ProducerConfigBuilder WithMaxBlockMs(long maxBlockMs)
Parameters
maxBlockMs
long
Returns
WithMaxInFlightRequestPerConnection(int)
public ProducerConfigBuilder WithMaxInFlightRequestPerConnection(int maxInFlightRequestPerConnection)
Parameters
maxInFlightRequestPerConnection
int
Returns
WithMaxRequestSize(int)
Manages MAX_REQUEST_SIZE_CONFIG
public ProducerConfigBuilder WithMaxRequestSize(int maxRequestSize)
Parameters
maxRequestSize
int
Returns
WithMetadataMaxIdle(long)
Manages METADATA_MAX_IDLE_CONFIG
public ProducerConfigBuilder WithMetadataMaxIdle(long metadataMaxIdle)
Parameters
metadataMaxIdle
long
Returns
WithPartitionerAvailabilityTimeoutMs(long)
public ProducerConfigBuilder WithPartitionerAvailabilityTimeoutMs(long partitionerAvailabilityTimeoutMs)
Parameters
partitionerAvailabilityTimeoutMs
long
Returns
WithPartitionerClass(Class)
Manages PARTITIONER_CLASS_CONFIG
public ProducerConfigBuilder WithPartitionerClass(Class partitionerClass)
Parameters
partitionerClass
Class
Returns
WithPartitionerIgnoreKeys(bool)
Manages PARTITIONER_IGNORE_KEYS_CONFIG
public ProducerConfigBuilder WithPartitionerIgnoreKeys(bool partitionerIgnoreKeys)
Parameters
partitionerIgnoreKeys
bool
Returns
WithSecurityProviders(string)
Manages SECURITY_PROVIDERS_CONFIG
public ProducerConfigBuilder WithSecurityProviders(string securityProviders)
Parameters
securityProviders
string
Returns
WithTransactionTimeout(int)
Manages TRANSACTION_TIMEOUT_CONFIG
public ProducerConfigBuilder WithTransactionTimeout(int transactionTimeout)
Parameters
transactionTimeout
int
Returns
WithTransactionalId(string)
Manages TRANSACTIONAL_ID_CONFIG
public ProducerConfigBuilder WithTransactionalId(string transactionalId)
Parameters
transactionalId
string
Returns
WithValueSerializerClass(string)
Manages VALUE_SERIALIZER_CLASS_CONFIG
public ProducerConfigBuilder WithValueSerializerClass(string valueSerializerClass)
Parameters
valueSerializerClass
string