Méthode |
Description |
|
__construct ( integer $threshold = 99, integer $sleep, Swift_Plugins_Sleeper $sleeper = null ) |
Create a new AntiFloodPlugin with $threshold and $sleep time. |
|
beforeSendPerformed ( Swift_Events_SendEvent $evt ) |
Invoked immediately before the Message is sent. |
|
getSleepTime ( ) : integer |
Get the number of seconds to sleep for during a restart. |
|
getThreshold ( ) : integer |
Get the number of emails to send before restarting. |
|
sendPerformed ( Swift_Events_SendEvent $evt ) |
Invoked immediately after the Message is sent. |
|
setSleepTime ( integer $sleep ) |
Set the number of seconds to sleep for during a restart. |
|
setThreshold ( integer $threshold ) |
Set the number of emails to send before restarting. |
|
sleep ( integer $seconds ) |
Sleep for $seconds. |
|