pl.allegro.tech.hermes.common.kafka.offset.SubscriptionOffsetChangeIndicator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of hermes-common Show documentation
Show all versions of hermes-common Show documentation
Fast and reliable message broker built on top of Kafka.
package pl.allegro.tech.hermes.common.kafka.offset;
import pl.allegro.tech.hermes.api.TopicName;
import pl.allegro.tech.hermes.common.kafka.KafkaTopic;
import pl.allegro.tech.hermes.common.kafka.KafkaTopicName;
import java.util.List;
public interface SubscriptionOffsetChangeIndicator {
void setSubscriptionOffset(TopicName topicName, String subscriptionName, String brokersClusterName, PartitionOffset partitionOffset);
PartitionOffsets getSubscriptionOffsets(TopicName topic, String subscriptionName, String brokersClusterName);
boolean areOffsetsMoved(TopicName topicName, String subscriptionName, String brokersClusterName,
KafkaTopic kafkaTopic, List partitionIds);
void removeOffset(TopicName topicName, String subscriptionName, String brokersClusterName,
KafkaTopicName kafkaTopicName, int partitionId);
}