Class EmptyKafkaTupleListener

    • Constructor Detail

      • EmptyKafkaTupleListener

        public EmptyKafkaTupleListener()
    • Method Detail

      • onEmit

        public void onEmit​(List<Object> tuple,
                           KafkaSpoutMessageId msgId)
        Description copied from interface: KafkaTupleListener
        Called when the tuple is emitted and auto commit is disabled. If kafka auto commit is enabled, the kafka consumer will periodically (depending on the commit interval) commit the offsets. Therefore, storm disables anchoring for tuples when auto commit is enabled and the spout will not receive acks and fails for those tuples.
        Specified by:
        onEmit in interface KafkaTupleListener
        Parameters:
        tuple - the storm tuple.
        msgId - The id of the tuple in the spout.
      • onPartitionsReassigned

        public void onPartitionsReassigned​(Collection<org.apache.kafka.common.TopicPartition> topicPartitions)
        Description copied from interface: KafkaTupleListener
        Called when kafka partitions are rebalanced.
        Specified by:
        onPartitionsReassigned in interface KafkaTupleListener
        Parameters:
        topicPartitions - The list of partitions that are now assigned to the consumer (may include partitions previously assigned to the consumer)