Class KafkaOutboundEndpointRouter<TMessage>
Routes the outbound messages to one or multiple Kafka endpoints.
Inheritance
Inherited Members
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 sourceKafkaOutboundEndpointRouter(DictionaryOutboundRouter<TMessage, KafkaProducerEndpoint>.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.RouterFunction<> | routerFunction | The DictionaryOutboundRouter<TMessage, TEndpoint>.RouterFunction. |
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Action<IKafkaProducerEndpointBuilder>> | endpointBuilderActions | The System.Collections.Generic.IReadOnlyDictionary<TKey, TValue> containing the key of each endpoint and the System.Action<T> to be invoked to build them. |
KafkaClientConfig | clientConfig | The KafkaClientConfig to be used to initialize the KafkaProducerConfig. |
KafkaOutboundEndpointRouter(DictionaryOutboundRouter<TMessage, KafkaProducerEndpoint>.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.SingleEndpointRouterFunction<> | routerFunction | The DictionaryOutboundRouter<TMessage, TEndpoint>.SingleEndpointRouterFunction. |
System.Collections.Generic.IReadOnlyDictionary<System.String, System.Action<IKafkaProducerEndpointBuilder>> | endpointBuilderActions | The System.Collections.Generic.IReadOnlyDictionary<TKey, TValue> containing the key of each endpoint and the System.Action<T> to be invoked to build them. |
KafkaClientConfig | clientConfig | The KafkaClientConfig to be used to initialize the KafkaProducerConfig. |