pl.allegro.tech.hermes.consumers.consumer.offset.FailedToCommitOffsets Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-consumers Show documentation
Show all versions of hermes-consumers Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.consumers.consumer.offset;
import java.util.HashSet;
import java.util.Set;
public class FailedToCommitOffsets {
private final Set offsets = new HashSet<>();
public FailedToCommitOffsets() {
}
public void add(Set failedOffsets) {
this.offsets.addAll(failedOffsets);
}
public void add(SubscriptionPartitionOffset failedOffset) {
this.offsets.add(failedOffset);
}
public boolean hasFailed() {
return !offsets.isEmpty();
}
public Set failedOffsets() {
return offsets;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy