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

pl.allegro.tech.hermes.consumers.consumer.receiver.MessageReceiver Maven / Gradle / Ivy

There is a newer version: 2.8.0
Show newest version
package pl.allegro.tech.hermes.consumers.consumer.receiver;

import pl.allegro.tech.hermes.api.Subscription;
import pl.allegro.tech.hermes.common.kafka.offset.PartitionOffset;
import pl.allegro.tech.hermes.consumers.consumer.Message;
import pl.allegro.tech.hermes.consumers.consumer.offset.SubscriptionPartitionOffset;

import java.util.Optional;
import java.util.Set;

public interface MessageReceiver {

    Optional next();

    default void stop() {}

    default void update(Subscription newSubscription) {}

    void commit(Set offsets);

    boolean moveOffset(PartitionOffset offset);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy