Class Swift_Plugins_ThrottlerPlugin
Throttles the rate at which emails are sent.
- Swift_Plugins_BandwidthMonitorPlugin implements Swift_Events_SendListener, Swift_Events_CommandListener, Swift_Events_ResponseListener, Swift_InputByteStream
- Swift_Plugins_ThrottlerPlugin implements Swift_Plugins_Sleeper, Swift_Plugins_Timer
Package: Swift\Plugins
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/Plugins/ThrottlerPlugin.php
Author: Chris Corbyn
Located at classes/swiftmailer/lib/classes/Swift/Plugins/ThrottlerPlugin.php
public
|
#
__construct( integer $rate, integer $mode =
Create a new ThrottlerPlugin. |
public
|
#
beforeSendPerformed(
Invoked immediately before the Message is sent. |
public
|
|
public
|
|
public
integer
|
|
private
integer
|
|
private
integer
|
bind(),
commandSent(),
commit(),
flushBuffers(),
getBytesIn(),
getBytesOut(),
reset(),
responseReceived(),
unbind(),
write()
|
integer |
BYTES_PER_MINUTE
Flag for throttling in bytes per minute |
#
0x01
|
integer |
MESSAGES_PER_MINUTE
Flag for throttling in emails per minute |
#
0x10
|
private
|
$_sleeper
The Sleeper instance for sleeping. |
|
private
|
$_timer
The Timer instance which provides the timestamp. |
|
private
integer
|
$_start
The time at which the first email was sent. |
|
private
integer
|
$_rate
The rate at which messages should be sent. |
|
private
integer
|
$_mode
The mode for throttling.
This is |
|
private
integer
|
$_messages
An internal counter of the number of messages sent. |
#
0
|