Search Results for

    Show / Hide Table of Contents

    Class DelayFlow<T>

    Flow stage for universal delay management, allows to manage delay through IDelayStrategy<T>.

    Inheritance
    object
    GraphStageWithMaterializedValue<FlowShape<T, T>, NotUsed>
    GraphStage<FlowShape<T, T>>
    SimpleLinearGraphStage<T>
    DelayFlow<T>
    Implements
    IGraphStageWithMaterializedValue<FlowShape<T, T>, NotUsed>
    IGraph<FlowShape<T, T>, NotUsed>
    IGraph<FlowShape<T, T>>
    Inherited Members
    GraphStage<FlowShape<T, T>>.CreateLogicAndMaterializedValue(Attributes)
    GraphStage<FlowShape<T, T>>.CreateLogic(Attributes)
    GraphStageWithMaterializedValue<FlowShape<T, T>, NotUsed>.InitialAttributes
    GraphStageWithMaterializedValue<FlowShape<T, T>, NotUsed>.Shape
    GraphStageWithMaterializedValue<FlowShape<T, T>, NotUsed>.WithAttributes(Attributes)
    GraphStageWithMaterializedValue<FlowShape<T, T>, NotUsed>.CreateLogicAndMaterializedValue(Attributes)
    GraphStageWithMaterializedValue<FlowShape<T, T>, NotUsed>.Module
    GraphStageWithMaterializedValue<FlowShape<T, T>, NotUsed>.AddAttributes(Attributes)
    GraphStageWithMaterializedValue<FlowShape<T, T>, NotUsed>.Named(string)
    GraphStageWithMaterializedValue<FlowShape<T, T>, NotUsed>.Async()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Streams.Dsl
    Assembly: Akka.Streams.dll
    Syntax
    public class DelayFlow<T> : SimpleLinearGraphStage<T>, IGraphStageWithMaterializedValue<FlowShape<T, T>, NotUsed>, IGraph<FlowShape<T, T>, NotUsed>, IGraph<FlowShape<T, T>>
    Type Parameters
    Name Description
    T

    type of element

    Constructors

    | Edit this page View Source

    DelayFlow(Func<IDelayStrategy<T>>)

    Flow stage that determines delay for each ongoing element invoking

    TimeSpan DelayStrategy.NextDelay(T element)
    . Implementing IDelayStrategy<T> with your own gives you flexible ability to manage delay value depending on coming elements. It is important notice that IDelayStrategy<T> can be stateful. There are also some predefined strategies: FixedDelay<T> and LinearIncreasingDelay<T>
    Declaration
    public DelayFlow(Func<IDelayStrategy<T>> strategySupplier)
    Parameters
    Type Name Description
    Func<IDelayStrategy<T>> strategySupplier

    creates new IDelayStrategy<T> object for each materialization

    | Edit this page View Source

    DelayFlow(TimeSpan)

    Flow stage with fixed delay for each element.

    Declaration
    public DelayFlow(TimeSpan fixedDelay)
    Parameters
    Type Name Description
    TimeSpan fixedDelay

    value of the delay

    Methods

    | Edit this page View Source

    CreateLogic(Attributes)

    TBD

    Declaration
    protected override GraphStageLogic CreateLogic(Attributes inheritedAttributes)
    Parameters
    Type Name Description
    Attributes inheritedAttributes

    TBD

    Returns
    Type Description
    GraphStageLogic

    TBD

    Overrides
    GraphStage<FlowShape<T, T>>.CreateLogic(Attributes)

    Implements

    IGraphStageWithMaterializedValue<TShape, TMaterialized>
    IGraph<TShape, TMaterialized>
    IGraph<TShape>

    Extension Methods

    ObjectExtensions.IsDefaultForType<T>(T)
    ObjectExtensions.AsOption<T>(T)
    Extensions.AsInstanceOf<T>(object)
    In this article
    • githubEdit this page
    • View Source
    Back to top
    Contribute
    • Project Chat
    • Discussion Forum
    • Source Code
    Support
    • Akka.NET Support Plans
    • Akka.NET Observability Tools
    • Akka.NET Training & Consulting
    Maintained By
    • Petabridge - The Akka.NET Company
    • Learn Akka.NET