Package akka.stream.impl
Class Throttle<T>
- java.lang.Object
-
- akka.stream.stage.GraphStageWithMaterializedValue<S,NotUsed>
-
- akka.stream.stage.GraphStage<FlowShape<T,T>>
-
- akka.stream.impl.fusing.GraphStages.SimpleLinearGraphStage<T>
-
- akka.stream.impl.Throttle<T>
-
public class Throttle<T> extends GraphStages.SimpleLinearGraphStage<T>
INTERNAL API
-
-
Constructor Summary
Constructors Constructor Description Throttle(int cost, scala.concurrent.duration.FiniteDuration per, int maximumBurst, scala.Function1<T,java.lang.Object> costCalculation, ThrottleMode mode)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static int
AutomaticMaximumBurst()
int
cost()
scala.Function1<T,java.lang.Object>
costCalculation()
GraphStageLogic
createLogic(Attributes inheritedAttributes)
long
effectiveMaximumBurst()
int
maximumBurst()
ThrottleMode
mode()
scala.concurrent.duration.FiniteDuration
per()
java.lang.String
toString()
-
Methods inherited from class akka.stream.impl.fusing.GraphStages.SimpleLinearGraphStage
in, out, shape
-
Methods inherited from class akka.stream.stage.GraphStage
createLogicAndMaterializedValue
-
Methods inherited from class akka.stream.stage.GraphStageWithMaterializedValue
createLogicAndMaterializedValue, initialAttributes, traversalBuilder, withAttributes
-
-
-
-
Constructor Detail
-
Throttle
public Throttle(int cost, scala.concurrent.duration.FiniteDuration per, int maximumBurst, scala.Function1<T,java.lang.Object> costCalculation, ThrottleMode mode)
-
-
Method Detail
-
AutomaticMaximumBurst
public static final int AutomaticMaximumBurst()
-
cost
public int cost()
-
per
public scala.concurrent.duration.FiniteDuration per()
-
maximumBurst
public int maximumBurst()
-
costCalculation
public scala.Function1<T,java.lang.Object> costCalculation()
-
mode
public ThrottleMode mode()
-
effectiveMaximumBurst
public long effectiveMaximumBurst()
-
createLogic
public GraphStageLogic createLogic(Attributes inheritedAttributes)
- Specified by:
createLogic
in classGraphStage<FlowShape<T,T>>
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-