public class Partition
extends java.lang.Object
'''Emits when''' all of the outputs stops backpressuring and there is an input element available
'''Backpressures when''' one of the outputs backpressure
'''Completes when''' upstream completes
'''Cancels when''' when one of the downstreams cancel
Constructor and Description |
---|
Partition() |
Modifier and Type | Method and Description |
---|---|
static <T> Graph<UniformFanOutShape<T,T>,NotUsed> |
create(java.lang.Class<T> clazz,
int outputCount,
Function<T,java.lang.Object> partitioner)
Create a new
Partition stage with the specified input type. |
static <T> Graph<UniformFanOutShape<T,T>,NotUsed> |
create(int outputCount,
Function<T,java.lang.Object> partitioner)
Create a new
Partition stage with the specified input type. |
public static <T> Graph<UniformFanOutShape<T,T>,NotUsed> create(int outputCount, Function<T,java.lang.Object> partitioner)
Partition
stage with the specified input type.
outputCount
- number of output portspartitioner
- function deciding which output each element will be targetedpublic static <T> Graph<UniformFanOutShape<T,T>,NotUsed> create(java.lang.Class<T> clazz, int outputCount, Function<T,java.lang.Object> partitioner)
Partition
stage with the specified input type.
outputCount
- number of output portspartitioner
- function deciding which output each element will be targetedclazz
- (undocumented)