Redudantly and rotationally uses several Transports when sending.

package Swift
subpackage Transport
author Chris Corbyn

 Methods

Creates a new LoadBalancedTransport.

__construct() 

Get $transports to delegate to.

getTransports() : array

Returns

arraySwift_Transport

Test if this Transport mechanism has started.

isStarted() : boolean

Returns

boolean

Register a plugin.

registerPlugin(\Swift_Events_EventListener $plugin) 

Parameters

Send the given Message.

send(\Swift_Mime_Message $message, string[] $failedRecipients) : int

Recipient/sender data will be retrieved from the Message API. The return value is the number of recipients who were accepted for delivery.

Parameters

$failedRecipients

string[]

&$failedRecipients to collect failures by-reference

Returns

int

Set $transports to delegate to.

setTransports(array $transports) 

Parameters

$transports

array

Swift_Transport

Start this Transport mechanism.

start() 

Stop this Transport mechanism.

stop() 

Rotates the transport list around and returns the first instance.

_getNextTransport() : \Swift_Transport
access protected

Returns

Tag the currently used (top of stack) transport as dead/useless.

_killCurrentTransport() 
access protected

 Properties

 

$_transports : array
access protected
 

$_deadTransports