Class Swift_Plugins_AntiFloodPlugin
Reduces network flooding when sending large amounts of mail.
- Swift_Plugins_AntiFloodPlugin implements Swift_Events_SendListener, Swift_Plugins_Sleeper
Package: Swift\Plugins
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/Plugins/AntiFloodPlugin.php
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/Plugins/AntiFloodPlugin.php
public
|
#
__construct( integer $threshold = 99, integer $sleep = 0,
Create a new AntiFloodPlugin with $threshold and $sleep time. |
public
|
|
public
integer
|
|
public
|
|
public
integer
|
|
public
|
#
beforeSendPerformed(
Invoked immediately before the Message is sent. |
public
|
|
public
|
private
integer
|
$_threshold
The number of emails to send before restarting Transport. |
|
private
integer
|
$_sleep
The number of seconds to sleep for during a restart. |
|
private
integer
|
$_counter
The internal counter. |
#
0
|
private
|
$_sleeper
The Sleeper instance for sleeping. |