public interface RequestStrategy
ActorSubscriber defines a RequestStrategy to control the stream back pressure.| Modifier and Type | Method and Description |
|---|---|
int |
requestDemand(int remainingRequested)
Invoked by the
ActorSubscriber after each incoming message to
determine how many more elements to request from the stream. |
int requestDemand(int remainingRequested)
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