Class MailSendThrottle
java.lang.Object
ch.tocco.nice2.messaging.mail.spi.MailSendThrottle
Thottles method invocations by allowing N invocations per second
using guava's
RateLimiter
.-
Method Summary
Modifier and TypeMethodDescriptionstatic MailSendThrottle
static MailSendThrottle
inactive()
static MailSendThrottle
permitsPerSecond
(double rate) abstract void
throttle()
-
Method Details
-
inactive
-
permitsPerSecond
-
createDefault
-
throttle
- Throws:
MailException
-