Throttler
Attributes
- Graph
- Supertypes
- class Objecttrait Matchableclass Any
- Self type
- Throttler.type
Members list
Type members
Classlikes
The mode that skips elements to meet the required rate.
The mode that skips elements to meet the required rate.
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait ThrottleModeclass Objecttrait Matchableclass Any
- Self type
- Enforcing.type
The mode that make pauses before emitting elements of the stream to meet the required rate.
The mode that make pauses before emitting elements of the stream to meet the required rate.
Attributes
- Graph
- Supertypes
- trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait ThrottleModeclass Objecttrait Matchableclass Any
- Self type
- Shaping.type
Value members
Concrete methods
The pipe that uses the token bucket algorithm to throttle elements of the stream according to the given rate.
The pipe that uses the token bucket algorithm to throttle elements of the stream according to the given rate.
Attributes
- duration
the period time in which emitted elements must meet
- elements
the allowed number of elements
- mode
the throttle mode ThrottleMode
- Returns:
fs2.Pipe
The pipe that uses the token bucket algorithm to throttle elements of the stream according to the given rate.
The pipe that uses the token bucket algorithm to throttle elements of the stream according to the given rate.
Attributes
- burst
increase the capacity threshold
- duration
the period time in which emitted elements must meet
- elements
the allowed number of elements
- mode
the throttle mode ThrottleMode
- Returns:
fs2.Pipe
The pipe that uses the token bucket algorithm to throttle elements of the stream according to the given rate, the burst and elements cost.
The pipe that uses the token bucket algorithm to throttle elements of the stream according to the given rate, the burst and elements cost.
Attributes
- burst
increase the capacity threshold
- duration
the period time in which emitted elements must meet
- elements
the allowed number of elements
- fnCost
calculate a cost of the element
- mode
the throttle mode ThrottleMode
- Returns:
fs2.Pipe