Class Partition<T>
Fan-out the stream to several streams. emitting an incoming upstream element to one downstream consumer according to the partitioner function applied to the element
Emits when an element is available from the input and the chosen output has demand
Backpressures when the currently chosen output back-pressuresCompletes when upstream completes and no output is pending
Cancels when when all downstreams cancelImplements
IGraph<UniformFanOutShape<T, T>>
Inherited Members
Namespace: Akka.Streams.Dsl
Assembly: Akka.Streams.dll
Syntax
public sealed class Partition<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 SourcePartition(int, Func<T, int>)
Initializes a new instance of the Partition<T> class.
Declaration
public Partition(int outputPorts, Func<T, int> partitioner)
Parameters
| Type | Name | Description |
|---|---|---|
| int | outputPorts | TBD |
| Func<T, int> | partitioner | TBD |
Fields
| Edit this page View SourceIn
TBD
Declaration
public readonly Inlet<T> In
Field Value
| Type | Description |
|---|---|
| Inlet<T> |
Properties
| 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