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
| Improve this Doc View SourceRequestDemand(Int32)
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 |
---|---|---|
Int32 | remainingRequested | current remaining number of elements that have been requested from upstream but not received yet |
Returns
Type | Description |
---|---|
Int32 | demand of more elements from the stream, returning 0 means that no more elements will be requested for now |