Package 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
-
-
Constructor Summary
Constructors Constructor Description RateInt(int numberOfCalls)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object x$1)
int
hashCode()
Throttler.Rate
msgsPer(int duration, java.util.concurrent.TimeUnit timeUnit)
Throttler.Rate
msgsPer(scala.concurrent.duration.FiniteDuration duration)
Throttler.Rate
msgsPerHour()
Throttler.Rate
msgsPerMinute()
Throttler.Rate
msgsPerSecond()
int
numberOfCalls()
-
-
-
Method Detail
-
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()
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
equals
public boolean equals(java.lang.Object x$1)
- Overrides:
equals
in classjava.lang.Object
-
-