Search Results for

    Show / Hide Table of Contents

    Interface IRequestStrategy

    An ActorSubscriber defines a IRequestStrategy to control the stream back pressure.

    Namespace: Akka.Streams.Actors
    Assembly: Akka.Streams.dll
    Syntax
    public interface IRequestStrategy

    Methods

    | Edit this page View Source

    RequestDemand(int)

    Invoked by the ActorSubscriber after each incoming message to determine how many more elements to request from the stream.

    Declaration
    int RequestDemand(int remainingRequested)
    Parameters
    Type Name Description
    int remainingRequested

    current remaining number of elements that have been requested from upstream but not received yet

    Returns
    Type Description
    int

    demand of more elements from the stream, returning 0 means that no more elements will be requested for now

    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