Class Swift_FailoverTransport

InheritanceSwift_FailoverTransport » Swift_Transport_FailoverTransport » Swift_Transport_LoadBalancedTransport

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

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$_transports Swift_Transport[] Swift_Transport_LoadBalancedTransport

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Creates a new FailoverTransport with $transports. Swift_FailoverTransport
getTransports() Get $transports to delegate to. Swift_Transport_LoadBalancedTransport
isStarted() Test if this Transport mechanism has started. Swift_Transport_LoadBalancedTransport
newInstance() Create a new FailoverTransport instance. Swift_FailoverTransport
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

Creates a new FailoverTransport with $transports.

public void __construct ( $transports = [] )
$transports Swift_Transport[]
newInstance() public static method

Create a new FailoverTransport instance.

public static Swift_FailoverTransport newInstance ( $transports = [] )
$transports Swift_Transport[]