
pl.allegro.tech.hermes.domain.subscription.SubscriptionRepository 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.
The newest version!
package pl.allegro.tech.hermes.domain.subscription;
import java.util.Collection;
import java.util.List;
import pl.allegro.tech.hermes.api.Subscription;
import pl.allegro.tech.hermes.api.SubscriptionName;
import pl.allegro.tech.hermes.api.TopicName;
public interface SubscriptionRepository {
boolean subscriptionExists(TopicName topicName, String subscriptionName);
void ensureSubscriptionExists(TopicName topicName, String subscriptionName);
void createSubscription(Subscription subscription);
void removeSubscription(TopicName topicName, String subscriptionName);
void updateSubscription(Subscription modifiedSubscription);
void updateSubscriptionState(
TopicName topicName, String subscriptionName, Subscription.State state);
Subscription getSubscriptionDetails(TopicName topicName, String subscriptionName);
Subscription getSubscriptionDetails(SubscriptionName subscriptionNames);
List getSubscriptionDetails(Collection subscriptionNames);
List listSubscriptionNames(TopicName topicName);
List listSubscriptions(TopicName topicName);
List listAllSubscriptions();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy