private static class TopicSelector.TopicNameSanitizer<I extends DataCollectionId> extends Object implements TopicSelector.DataCollectionTopicNamer<I>
_.| Modifier and Type | Field and Description |
|---|---|
private TopicSelector.DataCollectionTopicNamer<I> |
delegate |
private static org.slf4j.Logger |
LOGGER |
private static String |
REPLACEMENT_CHAR |
| Constructor and Description |
|---|
TopicNameSanitizer(TopicSelector.DataCollectionTopicNamer<I> delegate) |
| Modifier and Type | Method and Description |
|---|---|
private boolean |
isValidTopicNameCharacter(char c)
Whether the given character is a legal character of a Kafka topic name.
|
String |
topicNameFor(I id,
String prefix,
String delimiter) |
private static final org.slf4j.Logger LOGGER
private static final String REPLACEMENT_CHAR
private final TopicSelector.DataCollectionTopicNamer<I extends DataCollectionId> delegate
public TopicNameSanitizer(TopicSelector.DataCollectionTopicNamer<I> delegate)
public String topicNameFor(I id, String prefix, String delimiter)
topicNameFor in interface TopicSelector.DataCollectionTopicNamer<I extends DataCollectionId>private boolean isValidTopicNameCharacter(char c)
[a-zA-Z0-9._-].https://github.com/apache/kafka/blob/trunk/clients/src/main/java/org/apache/kafka/common/internals/Topic.javaCopyright © 2021 JBoss by Red Hat. All rights reserved.