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 vendors/swiftmailer/lib/classes/Swift/Plugins/ThrottlerPlugin.php
Author: Chris Corbyn
Located at vendors/swiftmailer/lib/classes/Swift/Plugins/ThrottlerPlugin.php
Methods summary
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
|
Methods inherited from Swift_Plugins_BandwidthMonitorPlugin
bind()
,
commandSent()
,
commit()
,
flushBuffers()
,
getBytesIn()
,
getBytesOut()
,
reset()
,
responseReceived()
,
unbind()
,
write()
Magic methods summary
Constants summary
integer |
BYTES_PER_MINUTE |
0x01 |
#
Flag for throttling in bytes per minute |
integer |
MESSAGES_PER_MINUTE |
0x10 |
#
Flag for throttling in emails per minute |
Properties summary
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. |