Search Results for

    Show / Hide Table of Contents

    Class LinearIncreasingDelay<T>

    Strategy with linear increasing delay.

    Inheritance
    object
    LinearIncreasingDelay<T>
    Implements
    IDelayStrategy<T>
    Inherited Members
    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 LinearIncreasingDelay<T> : IDelayStrategy<T>
    Type Parameters
    Name Description
    T

    type of element

    Constructors

    | Edit this page View Source

    LinearIncreasingDelay(TimeSpan, Func<T, bool>, TimeSpan, TimeSpan)

    Creates strategy that starts with initialDelay for each element, increases by increaseStep every time when needsIncrease returns

    true
    up to maxDelay, when needsIncrease returns
    false
    it resets to initialDelay.
    Declaration
    public LinearIncreasingDelay(TimeSpan increaseStep, Func<T, bool> needsIncrease, TimeSpan initialDelay, TimeSpan maxDelay)
    Parameters
    Type Name Description
    TimeSpan increaseStep

    step by which delay is increased

    Func<T, bool> needsIncrease

    if

    true
    delay increases, if
    false
    delay resets to initialDelay
    TimeSpan initialDelay

    initial delay for each of elements

    TimeSpan maxDelay

    limits maximum delay

    Methods

    | Edit this page View Source

    NextDelay(T)

    Returns delay for ongoing element,

    TimeSpan.Zero
    means passing without delay
    Declaration
    public TimeSpan NextDelay(T element)
    Parameters
    Type Name Description
    T element

    element

    Returns
    Type Description
    TimeSpan

    Implements

    IDelayStrategy<T>

    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