Package org.apache.pekko.stream.javadsl
Class Interleave
java.lang.Object
org.apache.pekko.stream.javadsl.Interleave
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic <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.
-
Constructor Details
-
Interleave
public Interleave()
-
-
Method Details
-
create
public static <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
-