\Swift_FailoverTransport
Contains a list of redundant Transports so when one fails, the next is used.
- Author: Chris Corbyn
Synopsis
class Swift_FailoverTransport
extends Swift_Transport_FailoverTransport
{
- // Inherited members from Swift_Transport_LoadBalancedTransport
- protected array $_transports;
- // methods
- public void __construct()
- public static Swift_FailoverTransport newInstance()
- // Inherited methods from Swift_Transport_FailoverTransport
- public void __construct()
- public int send()
- protected void _getNextTransport()
- protected void _killCurrentTransport()
- // Inherited methods from Swift_Transport_LoadBalancedTransport
- public void __construct()
- public void setTransports()
- public array getTransports()
- public boolean isStarted()
- public void start()
- public void stop()
- public int send()
- public void registerPlugin()
- protected Swift_Transport _getNextTransport()
- protected void _killCurrentTransport()
Hierarchy
Members
protected
- $_transports
—
array
The Transports which are used in rotation.
Methods
public
- __construct() — Creates a new FailoverTransport with $transports.
- newInstance() — Create a new FailoverTransport instance.
Inherited from Swift_Transport_FailoverTransport
protected
public
- send() — Send the given Message.
Inherited from Swift_Transport_LoadBalancedTransport
protected
- _getNextTransport() — Rotates the transport list around and returns the first instance.
- _killCurrentTransport() — Tag the currently used (top of stack) transport as dead/useless.
public
- getTransports() — Get $transports to delegate to.
- isStarted() — Test if this Transport mechanism has started.
- registerPlugin() — Register a plugin.
- send() — Send the given Message.
- setTransports() — Set $transports to delegate to.
- start() — Start this Transport mechanism.
- stop() — Stop this Transport mechanism.