Package org.apache.pekko.stream.javadsl
Class Interleave
- java.lang.Object
-
- org.apache.pekko.stream.javadsl.Interleave
-
public class Interleave extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description Interleave()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <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.static <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.
-
-
-
Method Detail
-
create
public static <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.- 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
public static <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.- Parameters:
inputPorts- number of input portssegmentSize- number of elements to send downstream before switching to next input port
-
-