Package org.apache.pekko.stream.scaladsl
Class MergeLatest<T,M>
java.lang.Object
org.apache.pekko.stream.stage.GraphStageWithMaterializedValue<S,NotUsed>
org.apache.pekko.stream.stage.GraphStage<UniformFanInShape<T,M>>
org.apache.pekko.stream.scaladsl.MergeLatest<T,M>
- All Implemented Interfaces:
Graph<UniformFanInShape<T,M>, NotUsed>
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.apache.pekko.stream.Graph
Graph.GraphMapMatVal<S extends Shape,M> -
Constructor Summary
ConstructorsConstructorDescriptionMergeLatest(int inputPorts, boolean eagerClose, scala.Function1<Object, M> buildElem) -
Method Summary
Modifier and TypeMethodDescriptionstatic <T> GraphStage<UniformFanInShape<T,scala.collection.immutable.List<T>>> apply(int inputPorts, boolean eagerComplete) Create a newMergeLatestwith the specified number of input ports.static <T> booleancreateLogic(Attributes inheritedAttributes) booleanin()intout()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
initialAttributes, 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
-
MergeLatest
-
-
Method Details
-
apply
public static <T> GraphStage<UniformFanInShape<T,scala.collection.immutable.List<T>>> apply(int inputPorts, boolean eagerComplete) Create a newMergeLatestwith the specified number of input ports.- Parameters:
inputPorts- number of input portseagerComplete- if true, the merge latest will complete as soon as one of its inputs completes.
-
apply$default$2
public static <T> boolean apply$default$2() -
inputPorts
public int inputPorts() -
eagerClose
public boolean eagerClose() -
in
-
out
-
shape
Description copied from interface:GraphThe shape of a graph is all that is externally visible: its inlets and outlets. -
createLogic
- Specified by:
createLogicin classGraphStage<UniformFanInShape<T,M>>
-
toString
-