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
Modifier and Type | Field and Description |
---|---|
static Partition$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
Partition$() |
Modifier and Type | Method and Description |
---|---|
<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. |
<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 final Partition$ MODULE$
public <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 <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)