pl.allegro.tech.hermes.domain.topic.TopicRepository 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.domain.topic;
import pl.allegro.tech.hermes.api.Topic;
import pl.allegro.tech.hermes.api.TopicName;
import java.util.Collection;
import java.util.List;
public interface TopicRepository {
boolean topicExists(TopicName topicName);
void ensureTopicExists(TopicName topicName);
List listTopicNames(String groupName);
List listTopics(String groupName);
void createTopic(Topic topic);
void removeTopic(TopicName topicName);
void updateTopic(Topic topic);
void touchTopic(TopicName topicName);
Topic getTopicDetails(TopicName topicName);
List getTopicsDetails(Collection topicNames);
List listAllTopics();
}