Class Swift_Transport_FailoverTransport

InheritanceSwift_Transport_FailoverTransport » Swift_Transport_LoadBalancedTransport
ImplementsSwift_Transport
SubclassesSwift_FailoverTransport

Contains a list of redundant Transports so when one fails, the next is used.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Swift_Transport_FailoverTransport
getLastUsedTransport() Get the Transport used in the last successful send operation. Swift_Transport_LoadBalancedTransport
getTransports() Get $transports to delegate to. Swift_Transport_LoadBalancedTransport
isStarted() Test if this Transport mechanism has started. Swift_Transport_LoadBalancedTransport
registerPlugin() Register a plugin. Swift_Transport_LoadBalancedTransport
send() Send the given Message. Swift_Transport_FailoverTransport
setTransports() Set $transports to delegate to. Swift_Transport_LoadBalancedTransport
start() Start this Transport mechanism. Swift_Transport_LoadBalancedTransport
stop() Stop this Transport mechanism. Swift_Transport_LoadBalancedTransport

Method Details

__construct() public method

public void __construct ( )
_getNextTransport() protected method

protected void _getNextTransport ( )
_killCurrentTransport() protected method

protected void _killCurrentTransport ( )
send() public method

Send the given Message.

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

public int send ( Swift_Mime_Message $message, &$failedRecipients null )
$message Swift_Mime_Message
$failedRecipients string[]

An array of failures by-reference