Class ConsumerConfigBuilder
Builder for ConsumerConfig
public class ConsumerConfigBuilder : CommonClientConfigsBuilder<ConsumerConfigBuilder>, INotifyPropertyChanged, IGenericSerDesFactory, IDisposable
- Inheritance
-
ConsumerConfigBuilder
- Implements
- Inherited Members
- Extension Methods
Properties
AllowAutoCreateTopics
Manages ALLOW_AUTO_CREATE_TOPICS_CONFIG
public bool AllowAutoCreateTopics { get; set; }
Property Value
AutoCommitIntervalMs
Manages AUTO_COMMIT_INTERVAL_MS_CONFIG
public int AutoCommitIntervalMs { get; set; }
Property Value
AutoOffsetReset
Manages AUTO_OFFSET_RESET_CONFIG
public ConsumerConfigBuilder.AutoOffsetResetTypes AutoOffsetReset { get; set; }
Property Value
CheckCrcs
Manages CHECK_CRCS_CONFIG
public bool CheckCrcs { get; set; }
Property Value
EnableAutoCommit
Manages ENABLE_AUTO_COMMIT_CONFIG
public bool EnableAutoCommit { get; set; }
Property Value
ExcludeInternalTopics
Manages EXCLUDE_INTERNAL_TOPICS_CONFIG
public bool ExcludeInternalTopics { get; set; }
Property Value
FetchMaxBytes
Manages FETCH_MAX_BYTES_CONFIG
public int FetchMaxBytes { get; set; }
Property Value
FetchMaxWaitMs
Manages FETCH_MAX_WAIT_MS_CONFIG
public int FetchMaxWaitMs { get; set; }
Property Value
FetchMinBytes
Manages FETCH_MIN_BYTES_CONFIG
public int FetchMinBytes { get; set; }
Property Value
GroupProtocol
Manages GROUP_PROTOCOL_CONFIG
public string GroupProtocol { get; set; }
Property Value
GroupRemoteAssignor
Manages GROUP_REMOTE_ASSIGNOR_CONFIG
public string GroupRemoteAssignor { get; set; }
Property Value
InterceptorClasses
Manages INTERCEPTOR_CLASSES_CONFIG
public List<Class> InterceptorClasses { get; set; }
Property Value
IsolationLevel
Manages ISOLATION_LEVEL_CONFIG
public IsolationLevel IsolationLevel { get; set; }
Property Value
KeyDeserializerClass
Manages KEY_DESERIALIZER_CLASS_CONFIG
public string KeyDeserializerClass { get; set; }
Property Value
MaxPartitionFetchBytes
Manages MAX_PARTITION_FETCH_BYTES_CONFIG
public int MaxPartitionFetchBytes { get; set; }
Property Value
MaxPollRecords
Manages MAX_POLL_RECORDS_CONFIG
public int MaxPollRecords { get; set; }
Property Value
PartitionAssignmentStrategy
public string PartitionAssignmentStrategy { get; set; }
Property Value
SecurityProviders
Manages SECURITY_PROVIDERS_CONFIG
public string SecurityProviders { get; set; }
Property Value
ValueDeserializerClass
Manages VALUE_DESERIALIZER_CLASS_CONFIG
public string ValueDeserializerClass { get; set; }
Property Value
Methods
WithAllowAutoCreateTopics(bool)
Manages ALLOW_AUTO_CREATE_TOPICS_CONFIG
public ConsumerConfigBuilder WithAllowAutoCreateTopics(bool allowAutoCreateTopics)
Parameters
allowAutoCreateTopics
bool
Returns
WithAutoCommitIntervalMs(int)
Manages AUTO_COMMIT_INTERVAL_MS_CONFIG
public ConsumerConfigBuilder WithAutoCommitIntervalMs(int autoCommitIntervalMs)
Parameters
autoCommitIntervalMs
int
Returns
WithAutoOffsetReset(AutoOffsetResetTypes)
Manages AUTO_OFFSET_RESET_CONFIG
public ConsumerConfigBuilder WithAutoOffsetReset(ConsumerConfigBuilder.AutoOffsetResetTypes autoOffsetReset)
Parameters
autoOffsetReset
ConsumerConfigBuilder.AutoOffsetResetTypes
Returns
WithCheckCrcs(bool)
Manages CHECK_CRCS_CONFIG
public ConsumerConfigBuilder WithCheckCrcs(bool checkCrcs)
Parameters
checkCrcs
bool
Returns
WithEnableAutoCommit(bool)
Manages ENABLE_AUTO_COMMIT_CONFIG
public ConsumerConfigBuilder WithEnableAutoCommit(bool enableAutoCommit)
Parameters
enableAutoCommit
bool
Returns
WithExcludeInternalTopics(bool)
Manages EXCLUDE_INTERNAL_TOPICS_CONFIG
public ConsumerConfigBuilder WithExcludeInternalTopics(bool excludeInternalTopics)
Parameters
excludeInternalTopics
bool
Returns
WithFetchMaxBytes(int)
Manages FETCH_MAX_BYTES_CONFIG
public ConsumerConfigBuilder WithFetchMaxBytes(int fetchMaxBytes)
Parameters
fetchMaxBytes
int
Returns
WithFetchMaxWaitMs(int)
Manages FETCH_MAX_WAIT_MS_CONFIG
public ConsumerConfigBuilder WithFetchMaxWaitMs(int fetchMaxWaitMs)
Parameters
fetchMaxWaitMs
int
Returns
WithFetchMinBytes(int)
Manages FETCH_MIN_BYTES_CONFIG
public ConsumerConfigBuilder WithFetchMinBytes(int fetchMinBytes)
Parameters
fetchMinBytes
int
Returns
WithGroupProtocol(string)
Manages GROUP_PROTOCOL_CONFIG
public ConsumerConfigBuilder WithGroupProtocol(string groupProtocol)
Parameters
groupProtocol
string
Returns
WithGroupRemoteAssignor(string)
Manages GROUP_REMOTE_ASSIGNOR_CONFIG
public ConsumerConfigBuilder WithGroupRemoteAssignor(string groupRemoteAssignor)
Parameters
groupRemoteAssignor
string
Returns
WithInterceptorClasses(List<Class>)
Manages INTERCEPTOR_CLASSES_CONFIG
public ConsumerConfigBuilder WithInterceptorClasses(List<Class> interceptorClasses)
Parameters
Returns
WithIsolationLevel(IsolationLevel)
Manages ISOLATION_LEVEL_CONFIG
public ConsumerConfigBuilder WithIsolationLevel(IsolationLevel isolationLevel)
Parameters
isolationLevel
IsolationLevel
Returns
WithKeyDeserializerClass(string)
Manages KEY_DESERIALIZER_CLASS_CONFIG
public ConsumerConfigBuilder WithKeyDeserializerClass(string keyDeserializerClass)
Parameters
keyDeserializerClass
string
Returns
WithMaxPartitionFetchBytes(int)
Manages MAX_PARTITION_FETCH_BYTES_CONFIG
public ConsumerConfigBuilder WithMaxPartitionFetchBytes(int maxPartitionFetchBytes)
Parameters
maxPartitionFetchBytes
int
Returns
WithMaxPollRecords(int)
Manages MAX_POLL_RECORDS_CONFIG
public ConsumerConfigBuilder WithMaxPollRecords(int maxPollRecords)
Parameters
maxPollRecords
int
Returns
WithPartitionAssignmentStrategy(string)
public ConsumerConfigBuilder WithPartitionAssignmentStrategy(string partitionAssignmentStrategy)
Parameters
partitionAssignmentStrategy
string
Returns
WithSecurityProviders(string)
Manages SECURITY_PROVIDERS_CONFIG
public ConsumerConfigBuilder WithSecurityProviders(string securityProviders)
Parameters
securityProviders
string
Returns
WithValueDeserializerClass(string)
Manages VALUE_DESERIALIZER_CLASS_CONFIG
public ConsumerConfigBuilder WithValueDeserializerClass(string valueDeserializerClass)
Parameters
valueDeserializerClass
string