Package io.debezium.schema
Class TopicSelector<I extends DataCollectionId>
java.lang.Object
io.debezium.schema.TopicSelector<I>
- Type Parameters:
I- The type ofDataCollectionIdused by a given implementation
Deprecated.
Implementations return names for Kafka topics (data and meta-data).
- Author:
- Randal Hauch, Gunnar Morling
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic interfaceDeprecated.Implementations determine the topic name corresponding to a given data collection.private static classDeprecated.A topic namer that caches names it has obtained from a delegate.private static classDeprecated.A topic namer that replaces any characters invalid in a topic name with_. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final TopicSelector.DataCollectionTopicNamer<I>Deprecated.private final StringDeprecated.private final StringDeprecated.private final StringDeprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprivateTopicSelector(String prefix, String heartbeatPrefix, String delimiter, TopicSelector.DataCollectionTopicNamer<I> dataCollectionTopicNamer) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic <I extends DataCollectionId>
TopicSelector<I>defaultSelector(CommonConnectorConfig connectorConfig, TopicSelector.DataCollectionTopicNamer<I> dataCollectionTopicNamer) Deprecated.static <I extends DataCollectionId>
TopicSelector<I>defaultSelector(String prefix, String heartbeatPrefix, String delimiter, TopicSelector.DataCollectionTopicNamer<I> dataCollectionTopicNamer) Deprecated.Deprecated.Get the name of the heartbeat topic for the given server.Deprecated.Get the name of the primary topic.topicNameFor(I id) Deprecated.Returns the name of the Kafka topic for a given data collection identifier
-
Field Details
-
prefix
Deprecated. -
heartbeatPrefix
Deprecated. -
delimiter
Deprecated. -
dataCollectionTopicNamer
private final TopicSelector.DataCollectionTopicNamer<I extends DataCollectionId> dataCollectionTopicNamerDeprecated.
-
-
Constructor Details
-
TopicSelector
private TopicSelector(String prefix, String heartbeatPrefix, String delimiter, TopicSelector.DataCollectionTopicNamer<I> dataCollectionTopicNamer) Deprecated.
-
-
Method Details
-
defaultSelector
public static <I extends DataCollectionId> TopicSelector<I> defaultSelector(String prefix, String heartbeatPrefix, String delimiter, TopicSelector.DataCollectionTopicNamer<I> dataCollectionTopicNamer) Deprecated. -
defaultSelector
public static <I extends DataCollectionId> TopicSelector<I> defaultSelector(CommonConnectorConfig connectorConfig, TopicSelector.DataCollectionTopicNamer<I> dataCollectionTopicNamer) Deprecated. -
topicNameFor
Deprecated.Returns the name of the Kafka topic for a given data collection identifier- Parameters:
id- the data collection identifier, nevernull- Returns:
- the name of the Kafka topic, never
null
-
getPrimaryTopic
Deprecated.Get the name of the primary topic.- Returns:
- the topic name; never null
-
getHeartbeatTopic
Deprecated.Get the name of the heartbeat topic for the given server. This method returns "<prefix>-heartbeat".- Returns:
- the topic name; never null
-
TopicNamingStrategyinstead.