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 MailSendThrottlestatic MailSendThrottleinactive()static MailSendThrottlepermitsPerSecond(double rate) abstract voidthrottle()
-
Method Details
-
inactive
-
permitsPerSecond
-
createDefault
-
throttle
- Throws:
MailException
-