Show / Hide Table of Contents

    Class KafkaConsumerConfig

    Extends the Confluent.Kafka.ConsumerConfig adding the Silverback specific settings.

    Inheritance
    object
    ConfluentClientConfigProxy
    ConfluentConsumerConfigProxy
    KafkaConsumerConfig
    Implements
    IValidatableEndpointSettings
    IEquatable<KafkaConsumerConfig>
    Inherited Members
    ConfluentConsumerConfigProxy.ConsumeResultFields
    ConfluentConsumerConfigProxy.AutoOffsetReset
    ConfluentConsumerConfigProxy.GroupInstanceId
    ConfluentConsumerConfigProxy.PartitionAssignmentStrategy
    ConfluentConsumerConfigProxy.SessionTimeoutMs
    ConfluentConsumerConfigProxy.HeartbeatIntervalMs
    ConfluentConsumerConfigProxy.GroupProtocolType
    ConfluentConsumerConfigProxy.GroupProtocol
    ConfluentConsumerConfigProxy.GroupRemoteAssignor
    ConfluentConsumerConfigProxy.CoordinatorQueryIntervalMs
    ConfluentConsumerConfigProxy.MaxPollIntervalMs
    ConfluentConsumerConfigProxy.EnableAutoCommit
    ConfluentConsumerConfigProxy.AutoCommitIntervalMs
    ConfluentConsumerConfigProxy.EnableAutoOffsetStore
    ConfluentConsumerConfigProxy.QueuedMinMessages
    ConfluentConsumerConfigProxy.QueuedMaxMessagesKbytes
    ConfluentConsumerConfigProxy.FetchWaitMaxMs
    ConfluentConsumerConfigProxy.FetchQueueBackoffMs
    ConfluentConsumerConfigProxy.MaxPartitionFetchBytes
    ConfluentConsumerConfigProxy.FetchMaxBytes
    ConfluentConsumerConfigProxy.FetchMinBytes
    ConfluentConsumerConfigProxy.FetchErrorBackoffMs
    ConfluentConsumerConfigProxy.IsolationLevel
    ConfluentConsumerConfigProxy.EnablePartitionEof
    ConfluentConsumerConfigProxy.CheckCrcs
    ConfluentClientConfigProxy.SaslMechanism
    ConfluentClientConfigProxy.Acks
    ConfluentClientConfigProxy.ClientId
    ConfluentClientConfigProxy.BootstrapServers
    ConfluentClientConfigProxy.MessageMaxBytes
    ConfluentClientConfigProxy.MessageCopyMaxBytes
    ConfluentClientConfigProxy.ReceiveMessageMaxBytes
    ConfluentClientConfigProxy.MaxInFlight
    ConfluentClientConfigProxy.TopicMetadataRefreshIntervalMs
    ConfluentClientConfigProxy.MetadataMaxAgeMs
    ConfluentClientConfigProxy.TopicMetadataRefreshFastIntervalMs
    ConfluentClientConfigProxy.TopicMetadataRefreshSparse
    ConfluentClientConfigProxy.TopicMetadataPropagationMaxMs
    ConfluentClientConfigProxy.TopicBlacklist
    ConfluentClientConfigProxy.Debug
    ConfluentClientConfigProxy.SocketTimeoutMs
    ConfluentClientConfigProxy.SocketSendBufferBytes
    ConfluentClientConfigProxy.SocketReceiveBufferBytes
    ConfluentClientConfigProxy.SocketKeepaliveEnable
    ConfluentClientConfigProxy.SocketNagleDisable
    ConfluentClientConfigProxy.SocketMaxFails
    ConfluentClientConfigProxy.BrokerAddressTtl
    ConfluentClientConfigProxy.BrokerAddressFamily
    ConfluentClientConfigProxy.SocketConnectionSetupTimeoutMs
    ConfluentClientConfigProxy.ConnectionsMaxIdleMs
    ConfluentClientConfigProxy.ReconnectBackoffMs
    ConfluentClientConfigProxy.ReconnectBackoffMaxMs
    ConfluentClientConfigProxy.StatisticsIntervalMs
    ConfluentClientConfigProxy.LogQueue
    ConfluentClientConfigProxy.LogThreadName
    ConfluentClientConfigProxy.EnableRandomSeed
    ConfluentClientConfigProxy.LogConnectionClose
    ConfluentClientConfigProxy.InternalTerminationSignal
    ConfluentClientConfigProxy.ApiVersionRequest
    ConfluentClientConfigProxy.ApiVersionRequestTimeoutMs
    ConfluentClientConfigProxy.ApiVersionFallbackMs
    ConfluentClientConfigProxy.BrokerVersionFallback
    ConfluentClientConfigProxy.AllowAutoCreateTopics
    ConfluentClientConfigProxy.SecurityProtocol
    ConfluentClientConfigProxy.SslCipherSuites
    ConfluentClientConfigProxy.SslCurvesList
    ConfluentClientConfigProxy.SslSigalgsList
    ConfluentClientConfigProxy.SslKeyLocation
    ConfluentClientConfigProxy.SslKeyPassword
    ConfluentClientConfigProxy.SslKeyPem
    ConfluentClientConfigProxy.SslCertificateLocation
    ConfluentClientConfigProxy.SslCertificatePem
    ConfluentClientConfigProxy.SslCaLocation
    ConfluentClientConfigProxy.SslCaPem
    ConfluentClientConfigProxy.SslCaCertificateStores
    ConfluentClientConfigProxy.SslCrlLocation
    ConfluentClientConfigProxy.SslKeystoreLocation
    ConfluentClientConfigProxy.SslKeystorePassword
    ConfluentClientConfigProxy.SslProviders
    ConfluentClientConfigProxy.SslEngineLocation
    ConfluentClientConfigProxy.SslEngineId
    ConfluentClientConfigProxy.EnableSslCertificateVerification
    ConfluentClientConfigProxy.SslEndpointIdentificationAlgorithm
    ConfluentClientConfigProxy.SaslKerberosServiceName
    ConfluentClientConfigProxy.SaslKerberosPrincipal
    ConfluentClientConfigProxy.SaslKerberosKinitCmd
    ConfluentClientConfigProxy.SaslKerberosKeytab
    ConfluentClientConfigProxy.SaslKerberosMinTimeBeforeRelogin
    ConfluentClientConfigProxy.SaslUsername
    ConfluentClientConfigProxy.SaslPassword
    ConfluentClientConfigProxy.SaslOauthbearerConfig
    ConfluentClientConfigProxy.EnableSaslOauthbearerUnsecureJwt
    ConfluentClientConfigProxy.SaslOauthbearerMethod
    ConfluentClientConfigProxy.SaslOauthbearerClientId
    ConfluentClientConfigProxy.SaslOauthbearerClientSecret
    ConfluentClientConfigProxy.SaslOauthbearerScope
    ConfluentClientConfigProxy.SaslOauthbearerExtensions
    ConfluentClientConfigProxy.SaslOauthbearerTokenEndpointUrl
    ConfluentClientConfigProxy.PluginLibraryPaths
    ConfluentClientConfigProxy.ClientRack
    ConfluentClientConfigProxy.ClientDnsLookup
    ConfluentClientConfigProxy.CancellationDelayMaxMs
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Messaging.Configuration.Kafka
    Assembly: Silverback.Integration.Kafka.dll
    Syntax
    public sealed class KafkaConsumerConfig : ConfluentConsumerConfigProxy, IValidatableEndpointSettings, IEquatable<KafkaConsumerConfig>

    Constructors

    | Improve this doc View source

    KafkaConsumerConfig(KafkaClientConfig?)

    Initializes a new instance of the KafkaConsumerConfig class.

    Declaration
    public KafkaConsumerConfig(KafkaClientConfig? clientConfig = null)
    Parameters
    Type Name Description
    KafkaClientConfig clientConfig

    The KafkaClientConfig to be used to initialize the KafkaConsumerConfig.

    Properties

    | Improve this doc View source

    CommitOffsetEach

    Defines the number of message to be processed before committing the offset to the server. The most reliable level is 1 but it reduces throughput.

    Declaration
    public int CommitOffsetEach { get; set; }
    Property Value
    Type Description
    int
    | Improve this doc View source

    EnableAutoRecovery

    Specifies whether the consumer has to be automatically recycled when a Confluent.Kafka.KafkaException is thrown while polling/consuming or an issues is detected (e.g. a poll timeout is reported). The default is true.

    Declaration
    public bool EnableAutoRecovery { get; set; }
    Property Value
    Type Description
    bool
    | Improve this doc View source

    GroupId

    Client group id string. All clients sharing the same group.id belong to the same group.

    default: ''
    importance: high.

    Declaration
    public override string GroupId { get; set; }
    Property Value
    Type Description
    string
    Overrides
    ConfluentConsumerConfigProxy.GroupId
    | Improve this doc View source

    IsAutoCommitEnabled

    Gets a value indicating whether autocommit is enabled according to the explicit configuration and Kafka defaults.

    Declaration
    public bool IsAutoCommitEnabled { get; }
    Property Value
    Type Description
    bool
    | Improve this doc View source

    IsGroupIdSet

    Returns a boolean indicating whether group.id is set.

    Declaration
    public bool IsGroupIdSet { get; }
    Property Value
    Type Description
    bool

    Methods

    | Improve this doc View source

    Equals(KafkaConsumerConfig?)

    Indicates whether the current object is equal to another object of the same type.

    Declaration
    public bool Equals(KafkaConsumerConfig? other)
    Parameters
    Type Name Description
    KafkaConsumerConfig other

    An object to compare with this object.

    Returns
    Type Description
    bool

    true if the current object is equal to the other parameter; otherwise, false.

    | Improve this doc View source

    Equals(object?)

    Determines whether the specified object is equal to the current object.

    Declaration
    public override bool Equals(object? obj)
    Parameters
    Type Name Description
    object obj

    The object to compare with the current object.

    Returns
    Type Description
    bool

    true if the specified object is equal to the current object; otherwise, false.

    Overrides
    object.Equals(object)
    | Improve this doc View source

    GetHashCode()

    Serves as the default hash function.

    Declaration
    public override int GetHashCode()
    Returns
    Type Description
    int

    A hash code for the current object.

    Overrides
    object.GetHashCode()
    | Improve this doc View source

    Validate()

    Throws an EndpointConfigurationException if the current configuration is not valid.

    Declaration
    public override void Validate()
    Overrides
    ConfluentClientConfigProxy.Validate()

    Implements

    IValidatableEndpointSettings
    IEquatable<T>
    • Improve this doc
    • View source
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini