Interface IKafkaProducerEndpointResolver<TMessage>
- Namespace
- Silverback.Messaging.Producing.EndpointResolvers
- Assembly
- Silverback.Integration.Kafka.dll
A type used to resolve the target topic and partition for the outbound message.
public interface IKafkaProducerEndpointResolver<in TMessage>
Type Parameters
TMessageThe type of the messages being produced.
Methods
GetTopicPartition(IOutboundEnvelope<TMessage>)
Gets the target topic and partition for the message being produced.
TopicPartition GetTopicPartition(IOutboundEnvelope<in TMessage> envelope)
Parameters
envelopeIOutboundEnvelope<TMessage>The envelope containing the message to be produced.
Returns
- TopicPartition
The target Confluent.Kafka.TopicPartition.