[ Index ]

MailPress 544

[ Index ]     [ Classes ]     [ Functions ]     [ Variables ]     [ Constants ]     [ Statistics ]    

title

Body

[close]

/mp-includes/Swiftmailer/classes/Swift/Plugins/ -> ThrottlerPlugin.php (summary)

(no description)

File Size: 200 lines (5 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Swift_Plugins_ThrottlerPlugin:: (8 methods):
  __construct()
  beforeSendPerformed()
  sendPerformed()
  sleep()
  getTimestamp()
  _throttleBytesPerMinute()
  _throttleMessagesPerSecond()
  _throttleMessagesPerMinute()


Class: Swift_Plugins_ThrottlerPlugin  - X-Ref

Throttles the rate at which emails are sent.

__construct($rate, $mode = self::BYTES_PER_MINUTE, Swift_Plugins_Sleeper $sleeper = null, Swift_Plugins_Timer $timer = null)   X-Ref
Create a new ThrottlerPlugin.

param: int                   $rate
param: int                   $mode,   defaults to {@link BYTES_PER_MINUTE}
param: Swift_Plugins_Sleeper $sleeper (only needed in testing)
param: Swift_Plugins_Timer   $timer   (only needed in testing)

beforeSendPerformed(Swift_Events_SendEvent $evt)   X-Ref
Invoked immediately before the Message is sent.

param: Swift_Events_SendEvent $evt

sendPerformed(Swift_Events_SendEvent $evt)   X-Ref
Invoked when a Message is sent.

param: Swift_Events_SendEvent $evt

sleep($seconds)   X-Ref
Sleep for $seconds.

param: int $seconds

getTimestamp()   X-Ref
Get the current UNIX timestamp.

return: int

_throttleBytesPerMinute($timePassed)   X-Ref
Get a number of seconds to sleep for.

param: int $timePassed
return: int

_throttleMessagesPerSecond($timePassed)   X-Ref
Get a number of seconds to sleep for.

param: int $timePassed
return: int

_throttleMessagesPerMinute($timePassed)   X-Ref
Get a number of seconds to sleep for.

param: int $timePassed
return: int



Generated: Thu Apr 28 18:38:52 2016 Cross-referenced by PHPXref 0.7.1