Class TransactionScopeMetadata

java.lang.Object
io.smallrye.reactive.messaging.kafka.impl.TransactionScopeMetadata

public class TransactionScopeMetadata extends Object
Message metadata that carries a reference to the KafkaProducer transaction scope through which the send should be routed. This ensures that the send goes through the scope's lazy transaction management rather than directly to the top-level producer.

Used by pooled transaction mode: KafkaTransactionsImpl.Transaction attaches this metadata, and KafkaSink reads it to route the send through the scope.

  • Constructor Details

    • TransactionScopeMetadata

      public TransactionScopeMetadata(KafkaProducer<?,?> scope)
  • Method Details