Interface IKafkaTransactionalProducerCollection
- Namespace
- Silverback.Messaging.Broker
- Assembly
- Silverback.Integration.Kafka.dll
Return a KafkaProducer that can be used to produce messages in a transaction. These producer are used through the KafkaTransactionalProducer.
public interface IKafkaTransactionalProducerCollection : IReadOnlyCollection<KafkaProducer>, IEnumerable<KafkaProducer>, IEnumerable
- Inherited Members
Methods
GetOrCreateAsync(string, KafkaProducerConfiguration, IOutboundEnvelope, IKafkaTransaction)
Gets or creates a KafkaProducer for the specified endpoint and transaction.
ValueTask<KafkaProducer> GetOrCreateAsync(string name, KafkaProducerConfiguration configuration, IOutboundEnvelope envelope, IKafkaTransaction transaction)
Parameters
namestringThe endpoint name. It could be either the topic/queue name or the friendly name.
configurationKafkaProducerConfigurationThe KafkaProducerConfiguration containing the endpoint configuration.
envelopeIOutboundEnvelopeThe IOutboundEnvelope containing the message to be produced.
transactionIKafkaTransactionThe IKafkaTransaction to be used to produce the messages.