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(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. |
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. |