XOOPS RMCommon Utilities
2.1.8.91RC
|
Public Member Functions | |
__construct () | |
getTransports (array $transports) | |
isStarted () | |
registerPlugin (Swift_Events_EventListener $plugin) | |
send (Swift_Mime_Message $message, &$failedRecipients=null) | |
setTransports (array $transports) | |
start () | |
stop () | |
Protected Member Functions | |
_getNextTransport () | |
_killCurrentTransport () | |
Protected Attributes | |
$_transports = array() | |
Private Attributes | |
$_deadTransports = array() | |
Definition at line 22 of file LoadBalancedTransport.php.
Swift_Transport_LoadBalancedTransport::__construct | ( | ) |
Creates a new LoadBalancedTransport.
Definition at line 39 of file LoadBalancedTransport.php.
|
protected |
Rotates the transport list around and returns the first instance.
Definition at line 159 of file LoadBalancedTransport.php.
Referenced by send().
|
protected |
Tag the currently used (top of stack) transport as dead/useless.
protected
Definition at line 173 of file LoadBalancedTransport.php.
Referenced by send().
Swift_Transport_LoadBalancedTransport::getTransports | ( | array | $transports | ) |
Get $transports to delegate to.
Definition at line 59 of file LoadBalancedTransport.php.
Swift_Transport_LoadBalancedTransport::isStarted | ( | ) |
Test if this Transport mechanism has started.
Implements Swift_Transport.
Definition at line 69 of file LoadBalancedTransport.php.
Swift_Transport_LoadBalancedTransport::registerPlugin | ( | Swift_Events_EventListener | $plugin | ) |
Register a plugin.
Swift_Events_EventListener | $plugin |
Implements Swift_Transport.
Definition at line 143 of file LoadBalancedTransport.php.
Swift_Transport_LoadBalancedTransport::send | ( | Swift_Mime_Message | $message, |
& | $failedRecipients = null |
||
) |
Send the given Message.
Recipient/sender data will be retreived from the Message API. The return value is the number of recipients who were accepted for delivery.
Swift_Mime_Message | $message | |
string[] | &$failedRecipients to collect failures by-reference |
Implements Swift_Transport.
Definition at line 103 of file LoadBalancedTransport.php.
References $i, _getNextTransport(), and _killCurrentTransport().
Swift_Transport_LoadBalancedTransport::setTransports | ( | array | $transports | ) |
Set $transports to delegate to.
array | $transports | Swift_Transport |
Definition at line 48 of file LoadBalancedTransport.php.
Referenced by Swift_FailoverTransport\__construct(), and Swift_LoadBalancedTransport\__construct().
Swift_Transport_LoadBalancedTransport::start | ( | ) |
Start this Transport mechanism.
Implements Swift_Transport.
Definition at line 77 of file LoadBalancedTransport.php.
Swift_Transport_LoadBalancedTransport::stop | ( | ) |
Stop this Transport mechanism.
Implements Swift_Transport.
Definition at line 85 of file LoadBalancedTransport.php.
|
private |
Transports which are deemed useless
Definition at line 26 of file LoadBalancedTransport.php.
|
protected |
Definition at line 34 of file LoadBalancedTransport.php.