TYPO3  7.6
Public Member Functions | Static Public Member Functions | List of all members
Swift_FailoverTransport Class Reference
Inheritance diagram for Swift_FailoverTransport:
Swift_Transport_FailoverTransport Swift_Transport_LoadBalancedTransport Swift_Transport

Public Member Functions

 __construct ($transports=array())
 
- Public Member Functions inherited from Swift_Transport_FailoverTransport
 __construct ()
 
 send (Swift_Mime_Message $message, &$failedRecipients=null)
 
- Public Member Functions inherited from Swift_Transport_LoadBalancedTransport
 __construct ()
 
 setTransports (array $transports)
 
 getTransports ()
 
 isStarted ()
 
 start ()
 
 stop ()
 
 send (Swift_Mime_Message $message, &$failedRecipients=null)
 
 registerPlugin (Swift_Events_EventListener $plugin)
 

Static Public Member Functions

static newInstance ($transports=array())
 

Additional Inherited Members

- Protected Member Functions inherited from Swift_Transport_FailoverTransport
 _getNextTransport ()
 
 _killCurrentTransport ()
 
- Protected Attributes inherited from Swift_Transport_LoadBalancedTransport
 $_transports = array()
 

Detailed Description

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

Author
Chris Corbyn

Definition at line 16 of file FailoverTransport.php.

Constructor & Destructor Documentation

__construct (   $transports = array())

Creates a new FailoverTransport with $transports.

Parameters
Swift_Transport[]$transports

Definition at line 23 of file FailoverTransport.php.

References Swift_DependencyContainer\getInstance(), and Swift_Transport_LoadBalancedTransport\setTransports().

Member Function Documentation

static newInstance (   $transports = array())
static

Create a new FailoverTransport instance.

Parameters
Swift_Transport[]$transports
Returns
Swift_FailoverTransport

Definition at line 41 of file FailoverTransport.php.