Package org.apache.pekko.stream
Class ThrottleMode
java.lang.Object
org.apache.pekko.stream.ThrottleMode
- Direct Known Subclasses:
ThrottleMode.Enforcing$,ThrottleMode.Shaping$
Represents a mode that decides how to deal exceed rate for Throttle operator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classMakes throttle fail with exception when upstream is faster than throttle ratestatic classTells throttle to make pauses before emitting messages to meet throttle rate -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic ThrottleMode.Enforcing$Java API: Makes throttle fail with exception when upstream is faster than throttle ratestatic ThrottleMode.Shaping$shaping()Java API: Tells throttle to make pauses before emitting messages to meet throttle rate
-
Constructor Details
-
ThrottleMode
public ThrottleMode()
-
-
Method Details
-
shaping
Java API: Tells throttle to make pauses before emitting messages to meet throttle rate -
enforcing
Java API: Makes throttle fail with exception when upstream is faster than throttle rate
-