Show / Hide Table of Contents

    Class KafkaProducerConfig

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

    Inheritance
    object
    ConfluentClientConfigProxy
    ConfluentProducerConfigProxy
    KafkaProducerConfig
    Implements
    IValidatableEndpointSettings
    IEquatable<KafkaProducerConfig>
    Inherited Members
    ConfluentProducerConfigProxy.EnableBackgroundPoll
    ConfluentProducerConfigProxy.EnableDeliveryReports
    ConfluentProducerConfigProxy.DeliveryReportFields
    ConfluentProducerConfigProxy.RequestTimeoutMs
    ConfluentProducerConfigProxy.MessageTimeoutMs
    ConfluentProducerConfigProxy.Partitioner
    ConfluentProducerConfigProxy.CompressionLevel
    ConfluentProducerConfigProxy.TransactionalId
    ConfluentProducerConfigProxy.TransactionTimeoutMs
    ConfluentProducerConfigProxy.EnableIdempotence
    ConfluentProducerConfigProxy.EnableGaplessGuarantee
    ConfluentProducerConfigProxy.QueueBufferingMaxMessages
    ConfluentProducerConfigProxy.QueueBufferingMaxKbytes
    ConfluentProducerConfigProxy.LingerMs
    ConfluentProducerConfigProxy.MessageSendMaxRetries
    ConfluentProducerConfigProxy.RetryBackoffMs
    ConfluentProducerConfigProxy.RetryBackoffMaxMs
    ConfluentProducerConfigProxy.QueueBufferingBackpressureThreshold
    ConfluentProducerConfigProxy.CompressionType
    ConfluentProducerConfigProxy.BatchNumMessages
    ConfluentProducerConfigProxy.BatchSize
    ConfluentProducerConfigProxy.StickyPartitioningLingerMs
    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 KafkaProducerConfig : ConfluentProducerConfigProxy, IValidatableEndpointSettings, IEquatable<KafkaProducerConfig>

    Constructors

    | Improve this doc View source

    KafkaProducerConfig(KafkaClientConfig?)

    Initializes a new instance of the KafkaProducerConfig class.

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

    The KafkaClientConfig to be used to initialize the KafkaProducerConfig.

    Properties

    | Improve this doc View source

    AreDeliveryReportsEnabled

    Gets a value indicating whether delivery reports are enabled according to the explicit configuration and Kafka defaults.

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

    DisposeOnException

    Specifies whether the producer has to be disposed and recreated if a Confluent.Kafka.KafkaException is thrown. The default is true.

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

    FlushTimeout

    Specifies the flush operation timeout. The default is 30 seconds.

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

    ThrowIfNotAcknowledged

    Specifies whether an exception must be thrown by the producer if the persistence is not acknowledge by the broker. The default is true.

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

    TransactionInitTimeout

    The transactions init operation timeout. The default is 30 seconds.

    Declaration
    public TimeSpan TransactionInitTimeout { get; set; }
    Property Value
    Type Description
    TimeSpan

    Methods

    | Improve this doc View source

    Equals(KafkaProducerConfig?)

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

    Declaration
    public bool Equals(KafkaProducerConfig? other)
    Parameters
    Type Name Description
    KafkaProducerConfig 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