akka.contrib.throttle.Throttler
A rate used for throttling.
There are some shorthands available to construct rates:
import java.util.concurrent.TimeUnit._ import scala.concurrent.duration.{ Duration, FiniteDuration } val rate1 = 1 msgsPer (1, SECONDS) val rate2 = 1 msgsPer Duration(1, SECONDS) val rate3 = 1 msgsPer (1 seconds) val rate4 = 1 msgsPerSecond val rate5 = 1 msgsPerMinute val rate6 = 1 msgsPerHour
the number of calls that may take place in a period
the length of the period
The duration in milliseconds.
A rate used for throttling.
There are some shorthands available to construct rates:
the number of calls that may take place in a period
the length of the period
akka.contrib.throttle.Throttler