
no.nav.common.kafka.consumer.feilhandtering.backoff.BackoffStrategy Maven / Gradle / Ivy
package no.nav.common.kafka.consumer.feilhandtering.backoff;
import no.nav.common.kafka.consumer.feilhandtering.KafkaConsumerRecordProcessor;
import no.nav.common.kafka.consumer.feilhandtering.StoredConsumerRecord;
import java.time.Duration;
/**
* Decides how long {@link KafkaConsumerRecordProcessor} should back off when retrying consumption of stored kafka records.
* The backoff only decides the minimum time before {@link KafkaConsumerRecordProcessor} will try to reconsume a record.
*/
public interface BackoffStrategy {
Duration getBackoffDuration(StoredConsumerRecord record);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy