final case class WatermarkRequestStrategy(highWatermark: Int, lowWatermark: Int) extends RequestStrategy with Product with Serializable

Requests up to the highWatermark when the remainingRequested is below the lowWatermark. This a good strategy when the actor performs work itself.

Source
ActorSubscriber.scala
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. WatermarkRequestStrategy
  2. Serializable
  3. Serializable
  4. Product
  5. Equals
  6. RequestStrategy
  7. AnyRef
  8. 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 WatermarkRequestStrategy(highWatermark: Int)

    Create WatermarkRequestStrategy with lowWatermark as half of the specified highWatermark.

  2. new WatermarkRequestStrategy(highWatermark: Int, lowWatermark: Int)

Value Members

  1. val highWatermark: Int
  2. val lowWatermark: Int
  3. 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
    WatermarkRequestStrategyRequestStrategy