Package akka.stream.javadsl
Class ThrottleControl
- java.lang.Object
- 
- akka.stream.javadsl.ThrottleControl
 
- 
 public final class ThrottleControl extends java.lang.ObjectControl the throttle rate from the outside of the stream, or share a common throttle rate across several streams.
- 
- 
Constructor SummaryConstructors Constructor Description ThrottleControl(int cost, java.time.Duration per)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetCost()Speed is limited tocost/per.java.time.DurationgetPer()Speed is limited tocost/per.ThrottleModemode()voidupdate(int cost, java.time.Duration per)
 
- 
- 
- 
Method Detail- 
getCostpublic int getCost() Speed is limited tocost/per. This is the current cost.
 - 
getPerpublic java.time.Duration getPer() Speed is limited tocost/per. This is the current per duration.
 - 
modepublic ThrottleMode mode() 
 - 
updatepublic void update(int cost, java.time.Duration per)
 
- 
 
-