Package akka.stream.scaladsl
Class MergeLatest<T,M>
- java.lang.Object
-
- akka.stream.stage.GraphStageWithMaterializedValue<S,NotUsed>
-
- akka.stream.stage.GraphStage<UniformFanInShape<T,M>>
-
- akka.stream.scaladsl.MergeLatest<T,M>
-
- All Implemented Interfaces:
Graph<UniformFanInShape<T,M>,NotUsed>
public final class MergeLatest<T,M> extends GraphStage<UniformFanInShape<T,M>>
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface akka.stream.Graph
Graph.GraphMapMatVal<S extends Shape,M>
-
-
Constructor Summary
Constructors Constructor Description MergeLatest(int inputPorts, boolean eagerClose, scala.Function1<java.lang.Object,M> buildElem)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static <T> GraphStage<UniformFanInShape<T,scala.collection.immutable.List<T>>>
apply(int inputPorts, boolean eagerComplete)
Create a newMergeLatest
with the specified number of input ports.static <T> boolean
apply$default$2()
GraphStageLogic
createLogic(Attributes inheritedAttributes)
boolean
eagerClose()
scala.collection.immutable.IndexedSeq<Inlet<T>>
in()
int
inputPorts()
Outlet<M>
out()
UniformFanInShape<T,M>
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
initialAttributes, withAttributes
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface akka.stream.Graph
addAttributes, async, async, async, getAttributes, named
-
-
-
-
Constructor Detail
-
MergeLatest
public MergeLatest(int inputPorts, boolean eagerClose, scala.Function1<java.lang.Object,M> buildElem)
-
-
Method Detail
-
apply
public static <T> GraphStage<UniformFanInShape<T,scala.collection.immutable.List<T>>> apply(int inputPorts, boolean eagerComplete)
Create a newMergeLatest
with 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()
-
shape
public UniformFanInShape<T,M> shape()
Description copied from interface:Graph
The shape of a graph is all that is externally visible: its inlets and outlets.
-
createLogic
public GraphStageLogic createLogic(Attributes inheritedAttributes)
- Specified by:
createLogic
in classGraphStage<UniformFanInShape<T,M>>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-