Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Furthermore, we add a new class interface to get a full description the a topology (to compensate for some internal methods that get removed)

  • org.apache.kafka.streams.TopologyDescription

    • TopologyDescription will have public subclassesinterfaces:

      • Subtopology
      • GlobalStores
      • Node
       (interface)
      • Source
      • Sink
      • Processor

The following methods will not be available in the newly added classes:

...

Code Block
languagejava
public finalinterface class TopologyDescription {
    public final Set<Subtopology> subtopologies();
    public final Set<GlobalStore> globalStores();

    public final classinferface Subtopology {
        public final int id();
        public final Set<Node> nodes();
    }

    public finalinterface class GlobalStore {
        public final Source source();
        public final Processor processor();
    }

    public interface Node {
        String name()
        Set<Node> getPredecessorspredecessors();
        Set<Node> getSuccessorssuccessors();
    }

    publicinterface final class Source implementsextends Node {
        public final String topics(); // can be comma separated list of topic names or pattern (as String)
    }

    publicinterface final class Processor implementsextends Node {
        public final Set<String> stores();
    }

    public final classinterface Sink implementsextends Node {
        public final String topic();
    }

}

 

Proposed Changes

...