Class Swift_Plugin_ConnectionRotator

Description

Implements interfaces:

Swift Rotating Connection Controller

Invokes the nextConnection() method of Swift_Connection_Rotator upon sending a given number of messages

Located in /Swift/Plugin/ConnectionRotator.php (line 21)


	
			
Variable Summary
boolean $called
int $count
array $used
Method Summary
Swift_Plugin_ConnectionRotator __construct ([int $threshold = 1])
void disconnectPerformed ( $e)
int getThreshold ()
void sendPerformed ( $e)
void setThreshold (int $threshold)
Variables
boolean $called = false (line 42)

Internal check to see if this plugin has yet been invoked

  • access: protected
int $count = 0 (line 32)

The total number of emails sent on this connection

  • access: protected
int $threshold = 1 (line 27)

The number of emails which must be sent before the connection is rotated

  • var: Threshold number of emails
  • access: protected
array $used = array() (line 37)

The connections we have used thus far

  • access: protected
Methods
Constructor __construct (line 48)

Constructor

  • access: public
Swift_Plugin_ConnectionRotator __construct ([int $threshold = 1])
  • int $threshold: The number of emails to send before rotating
disconnectPerformed (line 101)

Disconnect all the other connections

  • access: public
void disconnectPerformed ( $e)
getThreshold (line 64)

Get the number of emails which must be sent before a rotation occurs

  • access: public
int getThreshold ()
sendPerformed (line 74)

Swift's SendEvent listener.

Invoked when Swift sends a message

  • access: public
  • throws: Swift_ConnectionException If the connection cannot be rotated
void sendPerformed ( $e)
setThreshold (line 56)

Set the number of emails to send before a connection rotation is tried

  • access: public
void setThreshold (int $threshold)
  • int $threshold: Number of emails

Documentation generated on Wed, 26 Mar 2008 20:33:05 +1100 by phpDocumentor 1.3.1