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 wa-system/vendors/swift/classes/Swift/Plugins/ThrottlerPlugin.php
Author: Chris Corbyn
Located at wa-system/vendors/swift/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
|
|
private
integer
|
bind(),
commandSent(),
commit(),
flushBuffers(),
getBytesIn(),
getBytesOut(),
reset(),
responseReceived(),
unbind(),
write()
|
integer |
BYTES_PER_MINUTE
|
0x01 |
#
Flag for throttling in bytes per minute |
integer |
MESSAGES_PER_SECOND
|
0x11 |
#
Flag for throttling in emails per second (Amazon SES) |
integer |
MESSAGES_PER_MINUTE
|
0x10 |
#
Flag for throttling in emails per minute |
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. |
private
integer
|
$_messages | 0 |
#
An internal counter of the number of messages sent. |