Search Results for

    Show / Hide Table of Contents

    Enum OverflowStrategy

    Represents a strategy that decides how to deal with a buffer that is full but is about to receive a new element.

    Namespace: Akka.Streams
    Assembly: Akka.Streams.dll
    Syntax
    public enum OverflowStrategy

    Fields

    Name Description
    Backpressure

    If the buffer is full when a new element is available this strategy backpressures the upstream publisher until space becomes available in the buffer.

    DropBuffer

    If the buffer is full when a new element arrives, drops all the buffered elements to make space for the new element.

    DropHead

    If the buffer is full when a new element arrives, drops the oldest element from the buffer to make space for the new element.

    DropNew

    If the buffer is full when a new element arrives, drops the new element.

    DropTail

    If the buffer is full when a new element arrives, drops the youngest element from the buffer to make space for the new element.

    Fail

    If the buffer is full when a new element is available this strategy completes the stream with failure.

    Extension Methods

    ObjectExtensions.IsDefaultForType<OverflowStrategy>(OverflowStrategy)
    ObjectExtensions.AsOption<OverflowStrategy>(OverflowStrategy)
    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