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 SourceRequestDemand(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 |