Package org.apache.kafka.streams
Interface TopologyDescription
-
public interface TopologyDescriptionA meta representation of atopology.The nodes of a topology are grouped into
sub-topologiesif they are connected. In contrast, two sub-topologies are not connected but can be linked to each other via topics, i.e., if one sub-topologywritesinto a topic and another sub-topologyreadsfrom the same topic.When
KafkaStreams.start()is called, different sub-topologies will be constructed and executed as independenttasks.
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceTopologyDescription.GlobalStoreRepresents aglobal store.static interfaceTopologyDescription.NodeA node of a topology.static interfaceTopologyDescription.ProcessorA processor node of a topology.static interfaceTopologyDescription.SinkA sink node of a topology.static interfaceTopologyDescription.SourceA source node of a topology.static interfaceTopologyDescription.SubtopologyA connected sub-graph of aTopology.
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Set<TopologyDescription.GlobalStore>globalStores()All global stores of the represented topology.Set<TopologyDescription.Subtopology>subtopologies()All sub-topologies of the represented topology.
-
-
-
Method Detail
-
subtopologies
Set<TopologyDescription.Subtopology> subtopologies()
All sub-topologies of the represented topology.- Returns:
- set of all sub-topologies
-
globalStores
Set<TopologyDescription.GlobalStore> globalStores()
All global stores of the represented topology.- Returns:
- set of all global stores
-
-