Package org.apache.pekko.stream.javadsl
Class Interleave$
java.lang.Object
org.apache.pekko.stream.javadsl.Interleave$
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Interleave$Static reference to the singleton instance of this Scala object. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> Graph<UniformFanInShape<T,T>, NotUsed> create(int inputPorts, int segmentSize) Create a newInterleavewith the specified number of input ports and given size of elements to take from each input, witheagerCloseset to false.<T> Graph<UniformFanInShape<T,T>, NotUsed> create(int inputPorts, int segmentSize, boolean eagerClose) Create a newInterleavewith the specified number of input ports and given size of elements to take from each input.
-
Field Details
-
MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Constructor Details
-
Interleave$
public Interleave$()
-
-
Method Details
-
create
public <T> Graph<UniformFanInShape<T,T>, createNotUsed> (int inputPorts, int segmentSize, boolean eagerClose) Create a newInterleavewith the specified number of input ports and given size of elements to take from each input.- Parameters:
inputPorts- number of input portssegmentSize- number of elements to send downstream before switching to next input porteagerClose- if true, interleave completes upstream if any of its upstream completes.
-
create
Create a newInterleavewith the specified number of input ports and given size of elements to take from each input, witheagerCloseset to false.- Parameters:
inputPorts- number of input portssegmentSize- number of elements to send downstream before switching to next input port
-