Class SingleConcat<E>

  • All Implemented Interfaces:
    Graph<FlowShape<E,​E>,​NotUsed>

    public final class SingleConcat<E>
    extends GraphStage<FlowShape<E,​E>>
    Concatenating a single element to a stream is common enough that it warrants this optimization which avoids the actual fan-out for such cases.

    INTERNAL API

    • Constructor Detail

      • SingleConcat

        public SingleConcat​(E singleElem)
    • Method Detail

      • shape

        public FlowShape<E,​E> shape()
        Description copied from interface: Graph
        The shape of a graph is all that is externally visible: its inlets and outlets.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object