Interface TopologyPipeComponent


  • public interface TopologyPipeComponent
    This interface indicates a 'thing that can modify the topology' If the addToTopology gets called, it can add sources, sinks and processors to the Kafka Streams topology
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void addToTopology​(java.util.Stack<java.lang.String> transformerNames, int currentPipeId, org.apache.kafka.streams.Topology topology, io.floodplain.streams.api.TopologyContext topologyContext, TopologyConstructor topologyConstructor)  
      boolean materializeParent()
      Returns
      void setMaterialize()
      Call this to indicate that when this component will be added to the topology
    • Method Detail

      • addToTopology

        void addToTopology​(java.util.Stack<java.lang.String> transformerNames,
                           int currentPipeId,
                           org.apache.kafka.streams.Topology topology,
                           io.floodplain.streams.api.TopologyContext topologyContext,
                           TopologyConstructor topologyConstructor)
        Parameters:
        transformerNames - The list of transformers in the current stream (so in general it is empty for sources)
        currentPipeId - Every time start a new (sub) stream, it needs to get a new pipe id.
        topology - The topology we are using right now
        topologyContext - Immutable datastructure for this run.
        topologyConstructor - Mutable state for topology
      • materializeParent

        boolean materializeParent()
        Returns
        Returns:
        true if this component requires its parent transformer to be materialized.
      • setMaterialize

        void setMaterialize()
        Call this to indicate that when this component will be added to the topology