Show / Hide Table of Contents

    Class KafkaOutboundEndpointRouter<TMessage>

    Routes the outbound messages to one or multiple Kafka endpoints.

    Inheritance
    object
    OutboundRouter<TMessage>
    DictionaryOutboundRouter<TMessage, KafkaProducerEndpoint>
    KafkaOutboundEndpointRouter<TMessage>
    Implements
    IOutboundRouter<TMessage>
    IOutboundRouter
    Inherited Members
    DictionaryOutboundRouter<TMessage, KafkaProducerEndpoint>.Endpoints
    DictionaryOutboundRouter<TMessage, KafkaProducerEndpoint>.GetDestinationEndpoints(TMessage, MessageHeaderCollection)
    OutboundRouter<TMessage>.Endpoints
    OutboundRouter<TMessage>.GetDestinationEndpoints(TMessage, MessageHeaderCollection)
    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 class KafkaOutboundEndpointRouter<TMessage> : DictionaryOutboundRouter<TMessage, KafkaProducerEndpoint>, IOutboundRouter<TMessage>, IOutboundRouter
    Type Parameters
    Name Description
    TMessage

    The type of the messages to be routed.

    Constructors

    | Improve this doc View source

    KafkaOutboundEndpointRouter(RouterFunction, IReadOnlyDictionary<string, Action<IKafkaProducerEndpointBuilder>>, KafkaClientConfig?)

    Initializes a new instance of the KafkaOutboundEndpointRouter<TMessage> class.

    Declaration
    public KafkaOutboundEndpointRouter(DictionaryOutboundRouter<TMessage, KafkaProducerEndpoint>.RouterFunction routerFunction, IReadOnlyDictionary<string, Action<IKafkaProducerEndpointBuilder>> endpointBuilderActions, KafkaClientConfig? clientConfig = null)
    Parameters
    Type Name Description
    DictionaryOutboundRouter<TMessage, KafkaProducerEndpoint>.RouterFunction routerFunction

    The DictionaryOutboundRouter<TMessage, TEndpoint>.RouterFunction.

    IReadOnlyDictionary<string, Action<IKafkaProducerEndpointBuilder>> endpointBuilderActions

    The IReadOnlyDictionary<TKey, TValue> containing the key of each endpoint and the Action<T> to be invoked to build them.

    KafkaClientConfig clientConfig

    The KafkaClientConfig to be used to initialize the KafkaProducerConfig.

    | Improve this doc View source

    KafkaOutboundEndpointRouter(SingleEndpointRouterFunction, IReadOnlyDictionary<string, Action<IKafkaProducerEndpointBuilder>>, KafkaClientConfig?)

    Initializes a new instance of the KafkaOutboundEndpointRouter<TMessage> class.

    Declaration
    public KafkaOutboundEndpointRouter(DictionaryOutboundRouter<TMessage, KafkaProducerEndpoint>.SingleEndpointRouterFunction routerFunction, IReadOnlyDictionary<string, Action<IKafkaProducerEndpointBuilder>> endpointBuilderActions, KafkaClientConfig? clientConfig = null)
    Parameters
    Type Name Description
    DictionaryOutboundRouter<TMessage, KafkaProducerEndpoint>.SingleEndpointRouterFunction routerFunction

    The DictionaryOutboundRouter<TMessage, TEndpoint>.SingleEndpointRouterFunction.

    IReadOnlyDictionary<string, Action<IKafkaProducerEndpointBuilder>> endpointBuilderActions

    The IReadOnlyDictionary<TKey, TValue> containing the key of each endpoint and the Action<T> to be invoked to build them.

    KafkaClientConfig clientConfig

    The KafkaClientConfig to be used to initialize the KafkaProducerConfig.

    Implements

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