Swift
[ class tree: Swift ] [ index: Swift ] [ all elements ]

Class: Swift_Plugins_AntiFloodPlugin

Source Location: /vendors/swift/classes/Swift/Plugins/AntiFloodPlugin.php

Class Overview


Reduces network flooding when sending large amounts of mail.


Author(s):

  • Chris Corbyn

Implements interfaces:

Methods



Class Details

[line 21]
Reduces network flooding when sending large amounts of mail.



Tags:

author:  Chris Corbyn
filesource:  Source Code for this file


[ Top ]


Class Methods


constructor __construct [line 59]

Swift_Plugins_AntiFloodPlugin __construct( [int $threshold = 99], [int $sleep = 0], [Swift_Plugins_Sleeper $sleeper = null])

Create a new AntiFloodPlugin with $threshold and $sleep time.



Tags:

access:  public


Parameters:

int   $threshold  
int   $sleep   time
Swift_Plugins_Sleeper   $sleeper   (not needed really)

[ Top ]

method beforeSendPerformed [line 107]

void beforeSendPerformed( Swift_Events_SendEvent $evt)

Invoked immediately before the Message is sent.



Tags:

access:  public



Implementation of:
Swift_Events_SendListener::beforeSendPerformed()
Invoked immediately before the Message is sent.

Parameters:

Swift_Events_SendEvent   $evt  

[ Top ]

method getSleepTime [line 98]

int getSleepTime( )

Get the number of seconds to sleep for during a restart.



Tags:

access:  public


[ Top ]

method getThreshold [line 80]

int getThreshold( )

Get the number of emails to send before restarting.



Tags:

access:  public


[ Top ]

method sendPerformed [line 115]

void sendPerformed( Swift_Events_SendEvent $evt)

Invoked immediately after the Message is sent.



Tags:

access:  public



Implementation of:
Swift_Events_SendListener::sendPerformed()
Invoked immediately after the Message is sent.

Parameters:

Swift_Events_SendEvent   $evt  

[ Top ]

method setSleepTime [line 89]

void setSleepTime( int $sleep)

Set the number of seconds to sleep for during a restart.



Tags:

access:  public


Parameters:

int   $sleep   time

[ Top ]

method setThreshold [line 71]

void setThreshold( int $threshold)

Set the number of emails to send before restarting.



Tags:

access:  public


Parameters:

int   $threshold  

[ Top ]

method sleep [line 135]

void sleep( int $seconds)

Sleep for $seconds.



Tags:

access:  public



Implementation of:
Swift_Plugins_Sleeper::sleep()
Sleep for $seconds.

Parameters:

int   $seconds  

[ Top ]


Documentation generated on Mon, 05 Sep 2011 20:31:56 -0500 by phpDocumentor 1.4.3