Contains a list of redundant Transports so when one fails, the next is used.
Methods
Creates a new FailoverTransport.
__construct()
Get $transports to delegate to.
getTransports() : array
Inherited
inherited_from |
\Swift_Transport_LoadBalancedTransport::getTransports() |
Returns
array
Swift_Transport
Test if this Transport mechanism has started.
isStarted() : boolean
Inherited
inherited_from |
\Swift_Transport_LoadBalancedTransport::isStarted() |
Returns
boolean
Register a plugin.
registerPlugin(\Swift_Events_EventListener $plugin)
Inherited
inherited_from |
\Swift_Transport_LoadBalancedTransport::registerPlugin() |
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)
Inherited
inherited_from |
\Swift_Transport_LoadBalancedTransport::setTransports() |
Parameters
$transports
array
Swift_Transport
Start this Transport mechanism.
start()
Inherited
inherited_from |
\Swift_Transport_LoadBalancedTransport::start() |
Stop this Transport mechanism.
stop()
Inherited
inherited_from |
\Swift_Transport_LoadBalancedTransport::stop() |
Rotates the transport list around and returns the first instance.
_getNextTransport() : \Swift_Transport
Tag the currently used (top of stack) transport as dead/useless.
_killCurrentTransport()
Properties
$_transports : array
Inherited
access |
protected |
inherited_from |
\Swift_Transport_LoadBalancedTransport::$$_transports |
$_deadTransports
Inherited
inherited_from |
\Swift_Transport_LoadBalancedTransport::$$_deadTransports |