public class Broadcast
extends java.lang.Object
'''Emits when''' all of the outputs stops backpressuring and there is an input element available
'''Backpressures when''' any of the outputs backpressure
'''Completes when''' upstream completes
'''Cancels when''' If eagerCancel is enabled: when any downstream cancels; otherwise: when all downstreams cancel
Constructor and Description |
---|
Broadcast() |
Modifier and Type | Method and Description |
---|---|
static <T> Graph<UniformFanOutShape<T,T>,NotUsed> |
create(java.lang.Class<T> clazz,
int outputCount)
Create a new
Broadcast stage with the specified input type. |
static <T> Graph<UniformFanOutShape<T,T>,NotUsed> |
create(int outputCount)
Create a new
Broadcast stage with the specified input type. |
static <T> Graph<UniformFanOutShape<T,T>,NotUsed> |
create(int outputCount,
boolean eagerCancel)
Create a new
Broadcast stage with the specified input type. |
public static <T> Graph<UniformFanOutShape<T,T>,NotUsed> create(int outputCount, boolean eagerCancel)
Broadcast
stage with the specified input type.
outputCount
- number of output portseagerCancel
- if true, broadcast cancels upstream if any of its downstreams cancel.public static <T> Graph<UniformFanOutShape<T,T>,NotUsed> create(int outputCount)
Broadcast
stage with the specified input type.
outputCount
- number of output portspublic static <T> Graph<UniformFanOutShape<T,T>,NotUsed> create(java.lang.Class<T> clazz, int outputCount)
Broadcast
stage with the specified input type.clazz
- (undocumented)outputCount
- (undocumented)