Class Balance<T>
Fan-out the stream to several streams. Each upstream element is emitted to the first available downstream consumer. It will not shut down until the subscriptions for at least two downstream subscribers have been established.
A Balance<T> has one In port and 2 or more Out(int) ports.
Emits when any of the outputs stops backpressuring; emits the element to the first available output
Backpressures when all of the outputs backpressureCompletes when upstream completes
Cancels when all downstreams cancelImplements
IGraph<UniformFanOutShape<T, T>>
Inherited Members
Namespace: Akka.Streams.Dsl
Assembly: Akka.Streams.dll
Syntax
public sealed class Balance<T> : GraphStage<UniformFanOutShape<T, T>>, IGraphStageWithMaterializedValue<UniformFanOutShape<T, T>, NotUsed>, IGraph<UniformFanOutShape<T, T>, NotUsed>, IGraph<UniformFanOutShape<T, T>>
Type Parameters
| Name | Description |
|---|---|
| T | TBD |
Constructors
| Edit this page View SourceBalance(int, bool)
Initializes a new instance of the Balance<T> class.
Declaration
public Balance(int outputPorts, bool waitForAllDownstreams = false)
Parameters
| Type | Name | Description |
|---|---|---|
| int | outputPorts | TBD |
| bool | waitForAllDownstreams | TBD |
Exceptions
| Type | Condition |
|---|---|
| ArgumentException | This exception is thrown when the specified |
Properties
| Edit this page View SourceIn
TBD
Declaration
public Inlet<T> In { get; }
Property Value
| Type | Description |
|---|---|
| Inlet<T> |
InitialAttributes
TBD
Declaration
protected override Attributes InitialAttributes { get; }
Property Value
| Type | Description |
|---|---|
| Attributes |
Overrides
| Edit this page View SourceShape
TBD
Declaration
public override UniformFanOutShape<T, T> Shape { get; }
Property Value
| Type | Description |
|---|---|
| UniformFanOutShape<T, T> |
Overrides
Methods
| Edit this page View SourceCreateLogic(Attributes)
TBD
Declaration
protected override GraphStageLogic CreateLogic(Attributes inheritedAttributes)
Parameters
| Type | Name | Description |
|---|---|---|
| Attributes | inheritedAttributes | TBD |
Returns
| Type | Description |
|---|---|
| GraphStageLogic | TBD |
Overrides
| Edit this page View SourceOut(int)
TBD
Declaration
public Outlet<T> Out(int id)
Parameters
| Type | Name | Description |
|---|---|---|
| int | id | TBD |
Returns
| Type | Description |
|---|---|
| Outlet<T> | TBD |
ToString()
TBD
Declaration
public override string ToString()
Returns
| Type | Description |
|---|---|
| string | TBD |
Edit this page