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
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait ThrottleModeclass Objecttrait Matchableclass AnyShow all
- 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
- Supertypes
-
trait Singletontrait Producttrait Mirrortrait Serializabletrait Producttrait Equalstrait ThrottleModeclass Objecttrait Matchableclass AnyShow all
- 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.
Value parameters
- duration
-
the period time in which emitted elements must meet
- elements
-
the allowed number of elements
- mode
-
the throttle mode ThrottleMode
Attributes
- 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.
Value parameters
- 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
Attributes
- 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.
Value parameters
- 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
Attributes
- Returns
-
fs2.Pipe