Reduces network flooding when sending large amounts of mail.
Methods
Create a new AntiFloodPlugin with $threshold and $sleep time.
__construct(int $threshold, int $sleep, \Swift_Plugins_Sleeper $sleeper)
Parameters
$threshold
int
Get the number of seconds to sleep for during a restart.
getSleepTime() : int
Get the number of emails to send before restarting.
getThreshold() : int
Set the number of seconds to sleep for during a restart.
setSleepTime(int $sleep)
Set the number of emails to send before restarting.
setThreshold(int $threshold)
Parameters
$threshold
int
Sleep for $seconds.
sleep(int $seconds)
Properties