akka.contrib.throttle
Class Throttler.RateInt
java.lang.Object
scala.AnyVal
akka.contrib.throttle.Throttler.RateInt
- Enclosing class:
- Throttler
public static class Throttler.RateInt
- extends scala.AnyVal
Helper for some syntactic sugar.
- See Also:
Throttler.Rate
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Throttler.RateInt
public Throttler.RateInt(int numberOfCalls)
numberOfCalls
public int numberOfCalls()
msgsPer
public Throttler.Rate msgsPer(int duration,
java.util.concurrent.TimeUnit timeUnit)
msgsPer
public Throttler.Rate msgsPer(scala.concurrent.duration.FiniteDuration duration)
msgsPerSecond
public Throttler.Rate msgsPerSecond()
msgsPerMinute
public Throttler.Rate msgsPerMinute()
msgsPerHour
public Throttler.Rate msgsPerHour()