Show / Hide Table of Contents

    Class KafkaProducerEndpointNameResolver<TMessage>

    The base class for a type used to resolve the actual target endpoint name for the outbound message.

    Inheritance
    object
    ProducerEndpointNameResolver<TMessage>
    KafkaProducerEndpointNameResolver<TMessage>
    Implements
    IKafkaProducerEndpointNameResolver
    IProducerEndpointNameResolver
    Inherited Members
    ProducerEndpointNameResolver<TMessage>.GetName(IOutboundEnvelope)
    ProducerEndpointNameResolver<TMessage>.GetName(IOutboundEnvelope<TMessage>)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Silverback.Messaging.Outbound.Routing
    Assembly: Silverback.Integration.Kafka.dll
    Syntax
    public abstract class KafkaProducerEndpointNameResolver<TMessage> : ProducerEndpointNameResolver<TMessage>, IKafkaProducerEndpointNameResolver, IProducerEndpointNameResolver where TMessage : class
    Type Parameters
    Name Description
    TMessage

    The type of the messages being produced.

    Methods

    | Improve this doc View source

    GetPartition(IOutboundEnvelope)

    Gets the target partition for the message being produced.

    Declaration
    public int? GetPartition(IOutboundEnvelope envelope)
    Parameters
    Type Name Description
    IOutboundEnvelope envelope

    The envelope containing the message being produced.

    Returns
    Type Description
    int?

    The target partition index. If null the partition is automatically derived from the message key (use KafkaKeyMemberAttribute to specify a message key, otherwise a random one will be generated).

    | Improve this doc View source

    GetPartition(IOutboundEnvelope<TMessage>)

    Gets the target partition for the message being produced.

    Declaration
    protected abstract int? GetPartition(IOutboundEnvelope<TMessage> envelope)
    Parameters
    Type Name Description
    IOutboundEnvelope<TMessage> envelope

    The envelope containing the message being produced.

    Returns
    Type Description
    int?

    The target partition index. If null the partition is automatically derived from the message key (use KafkaKeyMemberAttribute to specify a message key, otherwise a random one will be generated).

    Implements

    IKafkaProducerEndpointNameResolver
    IProducerEndpointNameResolver
    • Improve this doc
    • View source
    In this article
    • Methods
      • GetPartition(IOutboundEnvelope)
      • GetPartition(IOutboundEnvelope<TMessage>)
    • Implements
    GitHub E-Mail
    ↑ Back to top © 2020 Sergio Aquilini