TYPO3
7.6
|
Public Member Functions | |
__construct ($threshold=99, $sleep=0, Swift_Plugins_Sleeper $sleeper=null) | |
setThreshold ($threshold) | |
getThreshold () | |
setSleepTime ($sleep) | |
getSleepTime () | |
beforeSendPerformed (Swift_Events_SendEvent $evt) | |
sendPerformed (Swift_Events_SendEvent $evt) | |
sleep ($seconds) | |
Private Attributes | |
$_threshold | |
$_sleep | |
$_counter = 0 | |
$_sleeper | |
Reduces network flooding when sending large amounts of mail.
Definition at line 16 of file AntiFloodPlugin.php.
__construct | ( | $threshold = 99 , |
|
$sleep = 0 , |
|||
Swift_Plugins_Sleeper | $sleeper = null |
||
) |
Create a new AntiFloodPlugin with $threshold and $sleep time.
int | $threshold | |
int | $sleep | time |
Swift_Plugins_Sleeper | $sleeper | (not needed really) |
Definition at line 53 of file AntiFloodPlugin.php.
References setSleepTime(), and setThreshold().
beforeSendPerformed | ( | Swift_Events_SendEvent | $evt | ) |
Invoked immediately before the Message is sent.
Swift_Events_SendEvent | $evt |
Implements Swift_Events_SendListener.
Definition at line 105 of file AntiFloodPlugin.php.
getSleepTime | ( | ) |
Get the number of seconds to sleep for during a restart.
Definition at line 95 of file AntiFloodPlugin.php.
References $_sleep.
getThreshold | ( | ) |
Get the number of emails to send before restarting.
Definition at line 75 of file AntiFloodPlugin.php.
References $_threshold.
sendPerformed | ( | Swift_Events_SendEvent | $evt | ) |
Invoked immediately after the Message is sent.
Swift_Events_SendEvent | $evt |
Implements Swift_Events_SendListener.
Definition at line 114 of file AntiFloodPlugin.php.
References $_counter, Swift_Events_SendEvent\getTransport(), and sleep().
setSleepTime | ( | $sleep | ) |
Set the number of seconds to sleep for during a restart.
int | $sleep | time |
Definition at line 85 of file AntiFloodPlugin.php.
Referenced by __construct().
setThreshold | ( | $threshold | ) |
Set the number of emails to send before restarting.
int | $threshold |
Definition at line 65 of file AntiFloodPlugin.php.
Referenced by __construct().
sleep | ( | $seconds | ) |
Sleep for $seconds.
int | $seconds |
Implements Swift_Plugins_Sleeper.
Definition at line 133 of file AntiFloodPlugin.php.
Referenced by sendPerformed().
|
private |
Definition at line 37 of file AntiFloodPlugin.php.
Referenced by sendPerformed().
|
private |
Definition at line 30 of file AntiFloodPlugin.php.
Referenced by getSleepTime().
|
private |
Definition at line 44 of file AntiFloodPlugin.php.
|
private |
Definition at line 23 of file AntiFloodPlugin.php.
Referenced by getThreshold().