Class Swift_FailoverTransport

InheritanceSwift_FailoverTransport » Swift_Transport_FailoverTransport » Swift_Transport_LoadBalancedTransport
ImplementsSwift_Transport

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

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Creates a new FailoverTransport with $transports. Swift_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
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[]