Class TTDUtils


  • public final class TTDUtils
    extends java.lang.Object
    A utility class that lives in the o.a.k.streams package so we can access internal topology metadata such as topics
    • Constructor Summary

      Constructors 
      Constructor Description
      TTDUtils()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.util.Set<java.lang.String> deriveChangelogTopic​(java.lang.String appId, java.util.List<java.lang.String> stores)  
      static java.util.Set<java.lang.String> extractChangelogTopics​(org.apache.kafka.streams.Topology topology)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • TTDUtils

        public TTDUtils()
    • Method Detail

      • deriveChangelogTopic

        public static java.util.Set<java.lang.String> deriveChangelogTopic​(java.lang.String appId,
                                                                           java.util.List<java.lang.String> stores)
        Parameters:
        appId - the application id
        stores - the list of state store names for which to derive changelog topic names
        Returns:
        the set of expected changelog topics computed for the provided state store names
      • extractChangelogTopics

        public static java.util.Set<java.lang.String> extractChangelogTopics​(org.apache.kafka.streams.Topology topology)
        Parameters:
        topology - a compiled topology (must have already been initialized by the TTD/app)
        Returns:
        the set of actual changelog topics belonging to all state stores in this topology