Class 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 Detail

      • ProducerTask

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

      • 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>