pl.allegro.tech.hermes.common.message.undelivered.UndeliveredMessagePaths 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.message.undelivered;
import pl.allegro.tech.hermes.api.TopicName;
import pl.allegro.tech.hermes.infrastructure.zookeeper.ZookeeperPaths;
class UndeliveredMessagePaths {
private static final String NODE_NAME = "undelivered";
private final ZookeeperPaths zookeeperPaths;
UndeliveredMessagePaths(ZookeeperPaths zookeeperPaths) {
this.zookeeperPaths = zookeeperPaths;
}
String buildPath(TopicName topicName, String subscriptionName) {
return zookeeperPaths.subscriptionPath(topicName, subscriptionName, NODE_NAME);
}
}