Package akka.remote.testkit
Interface ThrottleMode
-
- All Superinterfaces:
NoSerializationVerificationNeeded
- All Known Implementing Classes:
Blackhole$
,TokenBucket
,Unthrottled$
public interface ThrottleMode extends NoSerializationVerificationNeeded
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description scala.concurrent.duration.FiniteDuration
timeToAvailable(long currentNanoTime, int tokens)
scala.Tuple2<ThrottleMode,java.lang.Object>
tryConsumeTokens(long nanoTimeOfSend, int tokens)
-
-
-
Method Detail
-
tryConsumeTokens
scala.Tuple2<ThrottleMode,java.lang.Object> tryConsumeTokens(long nanoTimeOfSend, int tokens)
-
timeToAvailable
scala.concurrent.duration.FiniteDuration timeToAvailable(long currentNanoTime, int tokens)
-
-