java.lang.Object
io.smallrye.reactive.messaging.kafka.companion.KafkaTask<org.apache.kafka.clients.producer.RecordMetadata,ProducerTask>
io.smallrye.reactive.messaging.kafka.companion.ProducerTask
All Implemented Interfaces:
AutoCloseable, Iterable<org.apache.kafka.clients.producer.RecordMetadata>

public class ProducerTask extends KafkaTask<org.apache.kafka.clients.producer.RecordMetadata,ProducerTask>
Task for producing Kafka records provided by the given Multi
  • Constructor Details

    • ProducerTask

      public ProducerTask(io.smallrye.mutiny.Multi<org.apache.kafka.clients.producer.RecordMetadata> multi)
      Creates ProducerTask
      Parameters:
      multi - the multi providing produced RecordMetadata
  • Method Details

    • offset

      protected long offset(org.apache.kafka.clients.producer.RecordMetadata record)
      Specified by:
      offset in class KafkaTask<org.apache.kafka.clients.producer.RecordMetadata,ProducerTask>
    • topicPartition

      protected org.apache.kafka.common.TopicPartition topicPartition(org.apache.kafka.clients.producer.RecordMetadata record)
      Specified by:
      topicPartition in class KafkaTask<org.apache.kafka.clients.producer.RecordMetadata,ProducerTask>