Package org.apache.pekko.stream.scaladsl
Class ZipWithN<A,O>
java.lang.Object
org.apache.pekko.stream.stage.GraphStageWithMaterializedValue<S,NotUsed>
org.apache.pekko.stream.stage.GraphStage<UniformFanInShape<A,O>>
org.apache.pekko.stream.scaladsl.ZipWithN<A,O>
- All Implemented Interfaces:
Graph<UniformFanInShape<A,O>, NotUsed>
- Direct Known Subclasses:
ZipN
Combine the elements of multiple streams into a stream of sequences using a combiner function.
A ZipWithN has a n input ports and one out port
'''Emits when''' all of the inputs has an element available
'''Backpressures when''' downstream backpressures
'''Completes when''' any upstream completes
'''Cancels when''' downstream cancels
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pekko.stream.Graph
Graph.GraphMapMatVal<S extends Shape,M> -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <A,O> ZipWithN<A, O> apply(scala.Function1<scala.collection.immutable.Seq<A>, O> zipper, int n) Create a newZipWithN.createLogic(Attributes inheritedAttributes) out()shape()The shape of a graph is all that is externally visible: its inlets and outlets.toString()Methods inherited from class org.apache.pekko.stream.stage.GraphStage
createLogicAndMaterializedValueMethods inherited from class org.apache.pekko.stream.stage.GraphStageWithMaterializedValue
withAttributesMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.apache.pekko.stream.Graph
addAttributes, async, async, async, getAttributes, named
-
Constructor Details
-
ZipWithN
-
-
Method Details
-
apply
public static <A,O> ZipWithN<A,O> apply(scala.Function1<scala.collection.immutable.Seq<A>, O> zipper, int n) Create a newZipWithN. -
initialAttributes
- Overrides:
initialAttributesin classGraphStageWithMaterializedValue<UniformFanInShape<A,O>, NotUsed>
-
shape
Description copied from interface:GraphThe shape of a graph is all that is externally visible: its inlets and outlets. -
out
-
createLogic
- Specified by:
createLogicin classGraphStage<UniformFanInShape<A,O>>
-
toString
-