Package akka.stream
Class ThrottleMode
- java.lang.Object
-
- akka.stream.ThrottleMode
-
- Direct Known Subclasses:
ThrottleMode.Enforcing$
,ThrottleMode.Shaping$
public abstract class ThrottleMode extends java.lang.Object
Represents a mode that decides how to deal exceed rate for Throttle operator
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ThrottleMode.Enforcing$
Makes throttle fail with exception when upstream is faster than throttle ratestatic class
ThrottleMode.Shaping$
Tells throttle to make pauses before emitting messages to meet throttle rate
-
Constructor Summary
Constructors Constructor Description ThrottleMode()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static ThrottleMode.Enforcing$
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
-
-
-
Method Detail
-
shaping
public static ThrottleMode.Shaping$ shaping()
Java API: Tells throttle to make pauses before emitting messages to meet throttle rate
-
enforcing
public static ThrottleMode.Enforcing$ enforcing()
Java API: Makes throttle fail with exception when upstream is faster than throttle rate
-
-