Class TopicSelector<I extends io.debezium.spi.schema.DataCollectionId>

java.lang.Object
io.debezium.schema.TopicSelector<I>
Type Parameters:
I - The type of DataCollectionId used by a given implementation

@Deprecated public class TopicSelector<I extends io.debezium.spi.schema.DataCollectionId> extends Object
Deprecated.
Use TopicNamingStrategy instead.
Implementations return names for Kafka topics (data and meta-data).
Author:
Randal Hauch, Gunnar Morling
  • Field Details

    • prefix

      private final String prefix
      Deprecated.
    • heartbeatPrefix

      private final String heartbeatPrefix
      Deprecated.
    • delimiter

      private final String delimiter
      Deprecated.
    • dataCollectionTopicNamer

      private final TopicSelector.DataCollectionTopicNamer<I extends io.debezium.spi.schema.DataCollectionId> dataCollectionTopicNamer
      Deprecated.
  • Constructor Details

  • Method Details

    • defaultSelector

      public static <I extends io.debezium.spi.schema.DataCollectionId> TopicSelector<I> defaultSelector(String prefix, String heartbeatPrefix, String delimiter, TopicSelector.DataCollectionTopicNamer<I> dataCollectionTopicNamer)
      Deprecated.
    • defaultSelector

      public static <I extends io.debezium.spi.schema.DataCollectionId> TopicSelector<I> defaultSelector(CommonConnectorConfig connectorConfig, TopicSelector.DataCollectionTopicNamer<I> dataCollectionTopicNamer)
      Deprecated.
    • topicNameFor

      public String topicNameFor(I id)
      Deprecated.
      Returns the name of the Kafka topic for a given data collection identifier
      Parameters:
      id - the data collection identifier, never null
      Returns:
      the name of the Kafka topic, never null
    • getPrimaryTopic

      public String getPrimaryTopic()
      Deprecated.
      Get the name of the primary topic.
      Returns:
      the topic name; never null
    • getHeartbeatTopic

      public String getHeartbeatTopic()
      Deprecated.
      Get the name of the heartbeat topic for the given server. This method returns "<prefix>-heartbeat".
      Returns:
      the topic name; never null