Package io.debezium.schema
Class TopicSelector.TopicNameCache<I extends DataCollectionId>
- java.lang.Object
-
- io.debezium.schema.TopicSelector.TopicNameCache<I>
-
- All Implemented Interfaces:
TopicSelector.DataCollectionTopicNamer<I>
- Enclosing class:
- TopicSelector<I extends DataCollectionId>
@ThreadSafe private static class TopicSelector.TopicNameCache<I extends DataCollectionId> extends Object implements TopicSelector.DataCollectionTopicNamer<I>
A topic namer that caches names it has obtained from a delegate.
-
-
Field Summary
Fields Modifier and Type Field Description private TopicSelector.DataCollectionTopicNamer<I>
delegate
private BoundedConcurrentHashMap<I,String>
topicNames
-
Constructor Summary
Constructors Constructor Description TopicNameCache(TopicSelector.DataCollectionTopicNamer<I> delegate)
-
-
-
Field Detail
-
topicNames
private final BoundedConcurrentHashMap<I extends DataCollectionId,String> topicNames
-
delegate
private final TopicSelector.DataCollectionTopicNamer<I extends DataCollectionId> delegate
-
-
Constructor Detail
-
TopicNameCache
public TopicNameCache(TopicSelector.DataCollectionTopicNamer<I> delegate)
-
-
Method Detail
-
topicNameFor
public String topicNameFor(I id, String prefix, String delimiter)
- Specified by:
topicNameFor
in interfaceTopicSelector.DataCollectionTopicNamer<I extends DataCollectionId>
-
-