Interface ThrottlerTransportAdapter.ThrottleMode
- All Superinterfaces:
NoSerializationVerificationNeeded
- All Known Implementing Classes:
ThrottlerTransportAdapter.Blackhole$,ThrottlerTransportAdapter.TokenBucket,ThrottlerTransportAdapter.Unthrottled$
- Enclosing class:
- ThrottlerTransportAdapter
public static interface ThrottlerTransportAdapter.ThrottleMode
extends NoSerializationVerificationNeeded
-
Method Summary
Modifier and TypeMethodDescriptionscala.concurrent.duration.FiniteDurationtimeToAvailable(long currentNanoTime, int tokens) scala.Tuple2<ThrottlerTransportAdapter.ThrottleMode,Object> tryConsumeTokens(long nanoTimeOfSend, int tokens)
-
Method Details
-
timeToAvailable
scala.concurrent.duration.FiniteDuration timeToAvailable(long currentNanoTime, int tokens) -
tryConsumeTokens
scala.Tuple2<ThrottlerTransportAdapter.ThrottleMode,Object> tryConsumeTokens(long nanoTimeOfSend, int tokens)
-