Package org.apache.kafka.streams
Class TTDUtils
- java.lang.Object
-
- org.apache.kafka.streams.TTDUtils
-
public final class TTDUtils extends java.lang.ObjectA 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)
-
-
-
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 idstores- 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
-
-