Package akka.stream.impl
Class SingleConcat<E>
- java.lang.Object
-
- akka.stream.stage.GraphStageWithMaterializedValue<S,NotUsed>
-
- akka.stream.stage.GraphStage<FlowShape<E,E>>
-
- akka.stream.impl.SingleConcat<E>
-
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface akka.stream.Graph
Graph.GraphMapMatVal<S extends Shape,M>
-
-
Constructor Summary
Constructors Constructor Description SingleConcat(E singleElem)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description GraphStageLogic
createLogic(Attributes inheritedAttributes)
Inlet<E>
in()
Outlet<E>
out()
FlowShape<E,E>
shape()
The shape of a graph is all that is externally visible: its inlets and outlets.java.lang.String
toString()
-
Methods inherited from class akka.stream.stage.GraphStage
createLogicAndMaterializedValue
-
Methods inherited from class akka.stream.stage.GraphStageWithMaterializedValue
createLogicAndMaterializedValue, initialAttributes, traversalBuilder, withAttributes
-
-
-
-
Constructor Detail
-
SingleConcat
public SingleConcat(E singleElem)
-
-
Method Detail
-
createLogic
public GraphStageLogic createLogic(Attributes inheritedAttributes)
- Specified by:
createLogic
in classGraphStage<FlowShape<E,E>>
-
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 classjava.lang.Object
-
-