Skip to content

Files

23 lines (15 loc) · 1.45 KB

kafka-streams-internals-StreamSourceNode.adoc

File metadata and controls

23 lines (15 loc) · 1.45 KB

StreamSourceNode

StreamSourceNode is a StreamsGraphNode that is created when InternalStreamsBuilder is requested to add a KStream to a topology.

In other words, StreamSourceNode represents StreamsBuilder.stream and KStreamImpl.through operators.

StreamSourceNode takes the following when created:

writeToTopology Method

void writeToTopology(final InternalTopologyBuilder topologyBuilder)
Note
writeToTopology is part of the StreamsGraphNode Contract to…​FIXME.

writeToTopology simply requests the given InternalTopologyBuilder to addSource (per ConsumedInternal and topicPattern or topicNames).