public class Balance$
extends java.lang.Object
'''Emits when''' any of the outputs stops backpressuring; emits the element to the first available output
'''Backpressures when''' all of the outputs backpressure
'''Completes when''' upstream completes
'''Cancels when''' all downstreams cancel
Modifier and Type | Field and Description |
---|---|
static Balance$ |
MODULE$
Static reference to the singleton instance of this Scala object.
|
Constructor and Description |
---|
Balance$() |
Modifier and Type | Method and Description |
---|---|
<T> Graph<UniformFanOutShape<T,T>,NotUsed> |
create(java.lang.Class<T> clazz,
int outputCount)
Create a new
Balance stage with the specified input type. |
<T> Graph<UniformFanOutShape<T,T>,NotUsed> |
create(java.lang.Class<T> clazz,
int outputCount,
boolean waitForAllDownstreams)
Create a new
Balance stage with the specified input type. |
<T> Graph<UniformFanOutShape<T,T>,NotUsed> |
create(int outputCount)
Create a new
Balance stage with the specified input type. |
<T> Graph<UniformFanOutShape<T,T>,NotUsed> |
create(int outputCount,
boolean waitForAllDownstreams)
Create a new
Balance stage with the specified input type. |
public static final Balance$ MODULE$
public <T> Graph<UniformFanOutShape<T,T>,NotUsed> create(int outputCount, boolean waitForAllDownstreams)
Balance
stage with the specified input type.
waitForAllDownstreams
- if true
it will not start emitting
elements to downstream outputs until all of them have requested at least one elementoutputCount
- (undocumented)public <T> Graph<UniformFanOutShape<T,T>,NotUsed> create(int outputCount)
Balance
stage with the specified input type.outputCount
- (undocumented)public <T> Graph<UniformFanOutShape<T,T>,NotUsed> create(java.lang.Class<T> clazz, int outputCount)
Balance
stage with the specified input type.clazz
- (undocumented)outputCount
- (undocumented)public <T> Graph<UniformFanOutShape<T,T>,NotUsed> create(java.lang.Class<T> clazz, int outputCount, boolean waitForAllDownstreams)
Balance
stage with the specified input type.
waitForAllDownstreams
- if true
it will not start emitting
elements to downstream outputs until all of them have requested at least one elementclazz
- (undocumented)outputCount
- (undocumented)