Package akka.stream.javadsl
Class Balance$
- java.lang.Object
-
- akka.stream.javadsl.Balance$
-
public class Balance$ extends java.lang.ObjectCreate a newBalanceoperator with the specified input type,eagerCancelisfalse.param: outputCount number of output ports param: waitForAllDownstreams if
trueit will not start emitting elements to downstream outputs until all of them have requested at least one element
-
-
Constructor Summary
Constructors Constructor Description Balance$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> Graph<UniformFanOutShape<T,T>,NotUsed>create(int outputCount)Create a newBalanceoperator with the specified input type, bothwaitForAllDownstreamsandeagerCancelarefalse.<T> Graph<UniformFanOutShape<T,T>,NotUsed>create(int outputCount, boolean waitForAllDownstreams)<T> Graph<UniformFanOutShape<T,T>,NotUsed>create(int outputCount, boolean waitForAllDownstreams, boolean eagerCancel)Create a newBalanceoperator with the specified input type.<T> Graph<UniformFanOutShape<T,T>,NotUsed>create(java.lang.Class<T> clazz, int outputCount)Create a newBalanceoperator with the specified input type, bothwaitForAllDownstreamsandeagerCancelarefalse.<T> Graph<UniformFanOutShape<T,T>,NotUsed>create(java.lang.Class<T> clazz, int outputCount, boolean waitForAllDownstreams)Create a newBalanceoperator with the specified input type,eagerCancelisfalse.<T> Graph<UniformFanOutShape<T,T>,NotUsed>create(java.lang.Class<T> clazz, int outputCount, boolean waitForAllDownstreams, boolean eagerCancel)Create a newBalanceoperator with the specified input type.
-
-
-
Field Detail
-
MODULE$
public static final Balance$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
Method Detail
-
create
public <T> Graph<UniformFanOutShape<T,T>,NotUsed> create(int outputCount, boolean waitForAllDownstreams)
-
create
public <T> Graph<UniformFanOutShape<T,T>,NotUsed> create(int outputCount, boolean waitForAllDownstreams, boolean eagerCancel)
Create a newBalanceoperator with the specified input type.- Parameters:
outputCount- number of output portswaitForAllDownstreams- iftrueit will not start emitting elements to downstream outputs until all of them have requested at least one elementeagerCancel- if true, balance cancels upstream if any of its downstreams cancel, if false, when all have cancelled.- Returns:
- (undocumented)
-
create
public <T> Graph<UniformFanOutShape<T,T>,NotUsed> create(int outputCount)
Create a newBalanceoperator with the specified input type, bothwaitForAllDownstreamsandeagerCancelarefalse.- Parameters:
outputCount- number of output ports- Returns:
- (undocumented)
-
create
public <T> Graph<UniformFanOutShape<T,T>,NotUsed> create(java.lang.Class<T> clazz, int outputCount)
Create a newBalanceoperator with the specified input type, bothwaitForAllDownstreamsandeagerCancelarefalse.- Parameters:
clazz- a type hint for this methodoutputCount- number of output ports- Returns:
- (undocumented)
-
create
public <T> Graph<UniformFanOutShape<T,T>,NotUsed> create(java.lang.Class<T> clazz, int outputCount, boolean waitForAllDownstreams)
Create a newBalanceoperator with the specified input type,eagerCancelisfalse.- Parameters:
clazz- a type hint for this methodoutputCount- number of output portswaitForAllDownstreams- iftrueit will not start emitting elements to downstream outputs until all of them have requested at least one element- Returns:
- (undocumented)
-
create
public <T> Graph<UniformFanOutShape<T,T>,NotUsed> create(java.lang.Class<T> clazz, int outputCount, boolean waitForAllDownstreams, boolean eagerCancel)
Create a newBalanceoperator with the specified input type.- Parameters:
clazz- a type hint for this methodoutputCount- number of output portswaitForAllDownstreams- iftrueit will not start emitting elements to downstream outputs until all of them have requested at least one elementeagerCancel- if true, balance cancels upstream if any of its downstreams cancel, if false, when all have cancelled.- Returns:
- (undocumented)
-
-