Search Results for

    Show / Hide Table of Contents

    Class TimerGraphStageLogic

    Timer-driven graph stage logic.

    Inheritance
    object
    GraphStageLogic
    TimerGraphStageLogic
    Implements
    IStageLogging
    Inherited Members
    GraphStageLogic.NoPromise
    GraphStageLogic.EagerTerminateInput
    GraphStageLogic.IgnoreTerminateInput
    GraphStageLogic.ConditionalTerminateInput(Func<bool>)
    GraphStageLogic.TotallyIgnorantInput
    GraphStageLogic.EagerTerminateOutput
    GraphStageLogic.IgnoreTerminateOutput
    GraphStageLogic.DoNothing
    GraphStageLogic.ConditionalTerminateOutput(Func<bool>)
    GraphStageLogic.InCount
    GraphStageLogic.OutCount
    GraphStageLogic.Materializer
    GraphStageLogic.SubFusingMaterializer
    GraphStageLogic.KeepGoingAfterAllPortsClosed
    GraphStageLogic.StageActor
    GraphStageLogic.LogSource
    GraphStageLogic.Log
    GraphStageLogic.SetHandler<T>(Inlet<T>, IInHandler)
    GraphStageLogic.SetHandler<T>(Inlet<T>, Action, Action, Action<Exception>)
    GraphStageLogic.GetHandler<T>(Inlet<T>)
    GraphStageLogic.SetHandler<T>(Outlet<T>, IOutHandler)
    GraphStageLogic.SetHandler<T>(Outlet<T>, Action, Action<Exception>)
    GraphStageLogic.SetHandler<TIn, TOut>(Inlet<TIn>, Outlet<TOut>, InAndOutGraphStageLogic)
    GraphStageLogic.SetHandlers<TIn, TOut>(Inlet<TIn>, Outlet<TOut>, InAndOutGraphStageLogic)
    GraphStageLogic.GetHandler<T>(Outlet<T>)
    GraphStageLogic.Pull<T>(Inlet<T>)
    GraphStageLogic.TryPull<T>(Inlet<T>)
    GraphStageLogic.Cancel<T>(Inlet<T>, Exception)
    GraphStageLogic.Cancel<T>(Inlet<T>)
    GraphStageLogic.Grab<T>(Inlet<T>)
    GraphStageLogic.HasBeenPulled<T>(Inlet<T>)
    GraphStageLogic.IsAvailable<T>(Inlet<T>)
    GraphStageLogic.IsClosed<T>(Inlet<T>)
    GraphStageLogic.Push<T>(Outlet<T>, T)
    GraphStageLogic.SetKeepGoing(bool)
    GraphStageLogic.Complete<T>(Outlet<T>)
    GraphStageLogic.Fail<T>(Outlet<T>, Exception)
    GraphStageLogic.CancelStage(Exception)
    GraphStageLogic.CompleteStage()
    GraphStageLogic.FailStage(Exception)
    GraphStageLogic.IsAvailable<T>(Outlet<T>)
    GraphStageLogic.IsClosed<T>(Outlet<T>)
    GraphStageLogic.ReadMany<T>(Inlet<T>, int, Action<IEnumerable<T>>, Action<IEnumerable<T>>)
    GraphStageLogic.Read<T>(Inlet<T>, Action<T>, Action)
    GraphStageLogic.AbortReading<T>(Inlet<T>)
    GraphStageLogic.EmitMultiple<T>(Outlet<T>, IEnumerable<T>, Action)
    GraphStageLogic.EmitMultiple<T>(Outlet<T>, IEnumerable<T>)
    GraphStageLogic.EmitMultiple<T>(Outlet<T>, IEnumerator<T>, Action)
    GraphStageLogic.EmitMultiple<T>(Outlet<T>, IEnumerator<T>)
    GraphStageLogic.Emit<T>(Outlet<T>, T, Action)
    GraphStageLogic.Emit<T>(Outlet<T>, T)
    GraphStageLogic.AbortEmitting<T>(Outlet<T>)
    GraphStageLogic.PassAlong<TOut, TIn>(Inlet<TIn>, Outlet<TOut>, bool, bool, bool)
    GraphStageLogic.GetAsyncCallback<T>(Action<T>)
    GraphStageLogic.GetTypedAsyncCallback<T>(Action<T>)
    GraphStageLogic.GetAsyncCallback(Action)
    GraphStageLogic.GetStageActor(StageActorRef.Receive)
    GraphStageLogic.StageActorName
    GraphStageLogic.BeforePreStart()
    GraphStageLogic.PreStart()
    GraphStageLogic.PostStop()
    GraphStageLogic.CreateSubSinkInlet<T>(string)
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Akka.Streams.Stage
    Assembly: Akka.Streams.dll
    Syntax
    public abstract class TimerGraphStageLogic : GraphStageLogic, IStageLogging
    Remarks

    To be thread safe the methods of this class must only be called from either the constructor of the graph operator during materialization or one of the methods invoked by the graph operator machinery, such as GraphStageLogic.OnPush

    Constructors

    | Edit this page View Source

    TimerGraphStageLogic(Shape)

    TBD

    Declaration
    protected TimerGraphStageLogic(Shape shape)
    Parameters
    Type Name Description
    Shape shape

    TBD

    Methods

    | Edit this page View Source

    AfterPostStop()

    TBD

    Declaration
    protected override void AfterPostStop()
    Overrides
    GraphStageLogic.AfterPostStop()
    | Edit this page View Source

    CancelTimer(object)

    Cancel timer, ensuring that the OnTimer(object) is not subsequently called.

    Declaration
    protected void CancelTimer(object timerKey)
    Parameters
    Type Name Description
    object timerKey

    key of the timer to cancel

    | Edit this page View Source

    IsTimerActive(object)

    Inquire whether the timer is still active. Returns true unless the timer does not exist, has previously been canceled or if it was a single-shot timer that was already triggered.

    Declaration
    protected bool IsTimerActive(object timerKey)
    Parameters
    Type Name Description
    object timerKey

    TBD

    Returns
    Type Description
    bool

    TBD

    | Edit this page View Source

    OnTimer(object)

    Will be called when the scheduled timer is triggered.

    Declaration
    protected abstract void OnTimer(object timerKey)
    Parameters
    Type Name Description
    object timerKey

    TBD

    | Edit this page View Source

    ScheduleOnce(object, TimeSpan)

    Schedule timer to call OnTimer(object) after given delay. Any existing timer with the same key will automatically be canceled before adding the new timer.

    Declaration
    protected void ScheduleOnce(object timerKey, TimeSpan delay)
    Parameters
    Type Name Description
    object timerKey

    TBD

    TimeSpan delay

    TBD

    | Edit this page View Source

    ScheduleRepeatedly(object, TimeSpan)

    Schedule timer to call OnTimer(object) periodically with the given interval after the specified initial delay. Any existing timer with the same key will automatically be canceled before adding the new timer.

    Declaration
    protected void ScheduleRepeatedly(object timerKey, TimeSpan interval)
    Parameters
    Type Name Description
    object timerKey

    TBD

    TimeSpan interval

    TBD

    | Edit this page View Source

    ScheduleRepeatedly(object, TimeSpan, TimeSpan)

    Schedule timer to call OnTimer(object) periodically with the given interval after the specified initial delay. Any existing timer with the same key will automatically be canceled before adding the new timer.

    Declaration
    protected void ScheduleRepeatedly(object timerKey, TimeSpan initialDelay, TimeSpan interval)
    Parameters
    Type Name Description
    object timerKey

    TBD

    TimeSpan initialDelay

    TBD

    TimeSpan interval

    TBD

    Implements

    IStageLogging

    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