1 package de.juplo.demo.kafka.deduplication;
3 import org.apache.kafka.common.header.Headers;
6 public interface SequenceNumberExtractor<K,V>
9 * Extracts a sequence number from the given value.
11 * The sequence number must be represented as a {@link Long} value.
13 * @param topic The topic, the message was issued on
14 * @param partition The partition, the message was written to
15 * @param offset The offset of the message in the partition
16 * @param key The key of the message
17 * @param value The value of the message
20 public long extract(String topic, int partition, long offset, Headers headers, K key, V value);