All Downloads are FREE. Search and download functionalities are using the official Maven repository.

pl.allegro.tech.hermes.consumers.consumer.offset.FailedToCommitOffsets Maven / Gradle / Ivy

There is a newer version: 2.10.0
Show newest version
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