public interface TopicResolver extends Resolver
resolveTopic(String) and similar calls. The
reverse is done through {link #unresolveTopic(String)} and similar calls.DEFAULT_PREFIX| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
resolveTopic(java.lang.String topic)
Translates the internal representation of topic name to the external one.
|
org.apache.kafka.common.TopicPartition |
resolveTopic(org.apache.kafka.common.TopicPartition topicPartition)
Translates the internal representation of topic name to the external one.
|
java.util.Set<org.apache.kafka.common.TopicPartition> |
resolveTopicPartitions(java.util.Collection<org.apache.kafka.common.TopicPartition> topicPartitions)
Translates the internal representation of topic partitions to the external ones.
|
java.util.regex.Pattern |
resolveTopicPattern(java.util.regex.Pattern pattern)
Translates the internal representation of topic pattern to the external one.
|
java.util.Set<java.lang.String> |
resolveTopics(java.util.Collection<java.lang.String> topics)
Translates the internal representation of topic names to the external ones.
|
<V> java.util.Map<org.apache.kafka.common.TopicPartition,V> |
resolveTopics(java.util.Map<org.apache.kafka.common.TopicPartition,V> topicPartitionMap)
Translates the internal representation of a topic partition map to the external one.
|
java.lang.String |
unresolveTopic(java.lang.String topic)
Translates the external representation of topic name to the internal one.
|
org.apache.kafka.common.TopicPartition |
unresolveTopic(org.apache.kafka.common.TopicPartition topicPartition)
Translates the external representation of topic partition to the internal one.
|
java.util.Set<org.apache.kafka.common.TopicPartition> |
unresolveTopicPartitions(java.util.Collection<org.apache.kafka.common.TopicPartition> topicPartitions)
Translates the external representation of topic partitions to the internal ones.
|
java.util.Set<java.lang.String> |
unresolveTopics(java.util.Collection<java.lang.String> topics)
Translates the external representation of topic names to the internal ones.
|
<V> java.util.Map<org.apache.kafka.common.TopicPartition,V> |
unresolveTopics(java.util.Map<org.apache.kafka.common.TopicPartition,V> topicPartitionMap)
Translates the external representation of topic partition to the internal one.
|
configure, getNameFromContext, resolve, unresolve, unresolveContextjava.lang.String resolveTopic(java.lang.String topic)
topic - the application's internal topic namejava.util.regex.Pattern resolveTopicPattern(java.util.regex.Pattern pattern)
pattern - the application's internal topic patternorg.apache.kafka.common.TopicPartition resolveTopic(org.apache.kafka.common.TopicPartition topicPartition)
topicPartition - the application's internal topic partitionjava.util.Set<java.lang.String> resolveTopics(java.util.Collection<java.lang.String> topics)
topics - the application's internal topic namesjava.util.Set<org.apache.kafka.common.TopicPartition> resolveTopicPartitions(java.util.Collection<org.apache.kafka.common.TopicPartition> topicPartitions)
topicPartitions - the application's internal topic partitions<V> java.util.Map<org.apache.kafka.common.TopicPartition,V> resolveTopics(java.util.Map<org.apache.kafka.common.TopicPartition,V> topicPartitionMap)
V - any type used as Value in the MaptopicPartitionMap - the map containing the application's internal topic partitions as
Keysjava.lang.String unresolveTopic(java.lang.String topic)
topic - the external topic nameorg.apache.kafka.common.TopicPartition unresolveTopic(org.apache.kafka.common.TopicPartition topicPartition)
topicPartition - the external topic partitionjava.util.Set<java.lang.String> unresolveTopics(java.util.Collection<java.lang.String> topics)
topics - the external topic namesjava.util.Set<org.apache.kafka.common.TopicPartition> unresolveTopicPartitions(java.util.Collection<org.apache.kafka.common.TopicPartition> topicPartitions)
topicPartitions - the external topic partitions<V> java.util.Map<org.apache.kafka.common.TopicPartition,V> unresolveTopics(java.util.Map<org.apache.kafka.common.TopicPartition,V> topicPartitionMap)
V - any type used as Value in the MaptopicPartitionMap - the map containing the application's external topic partitions as
keysCopyright © 2020–2022 Axual B.V.. All rights reserved.