c

akka.stream.actor

MaxInFlightRequestStrategy

abstract class MaxInFlightRequestStrategy extends RequestStrategy

Requests up to the max and also takes the number of messages that have been queued internally or delegated to other actors into account. Concrete subclass must implement #inFlightInternally. It will request elements in minimum batches of the defined #batchSize.

Source
ActorSubscriber.scala
Linear Supertypes
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. MaxInFlightRequestStrategy
  2. RequestStrategy
  3. AnyRef
  4. Any
Implicitly
  1. by any2stringadd
  2. by StringFormat
  3. by Ensuring
  4. by ArrowAssoc
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new MaxInFlightRequestStrategy(max: Int)

Abstract Value Members

  1. abstract def inFlightInternally: Int

    Concrete subclass must implement this method to define how many messages that are currently in progress or queued.

Concrete Value Members

  1. def batchSize: Int

    Elements will be requested in minimum batches of this size.

    Elements will be requested in minimum batches of this size. Default is 5. Subclass may override to define the batch size.

  2. def requestDemand(remainingRequested: Int): Int

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

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

    remainingRequested

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

    returns

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

    Definition Classes
    MaxInFlightRequestStrategyRequestStrategy