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
Linear Supertypes
Ordering
- Alphabetic
- By Inheritance
Inherited
- WatermarkRequestStrategy
- Serializable
- Serializable
- Product
- Equals
- RequestStrategy
- AnyRef
- Any
Implicitly
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
Visibility
- Public
- All
Instance Constructors
Value Members
- val highWatermark: Int
- val lowWatermark: Int
-
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
- WatermarkRequestStrategy → RequestStrategy