Swift
[ class tree: Swift ] [ index: Swift ] [ all elements ]

Class: Swift_Transport_FailoverTransport

Source Location: /vendors/swift/classes/Swift/Transport/FailoverTransport.php

Class Overview

Swift_Transport_LoadBalancedTransport
   |
   --Swift_Transport_FailoverTransport

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


Author(s):

  • Chris Corbyn

Methods


Child classes:

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

Inherited Variables

Inherited Methods

Class: Swift_Transport_LoadBalancedTransport

Swift_Transport_LoadBalancedTransport::__construct()
Creates a new LoadBalancedTransport.
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_LoadBalancedTransport::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::_getNextTransport()
Rotates the transport list around and returns the first instance.
Swift_Transport_LoadBalancedTransport::_killCurrentTransport()
Tag the currently used (top of stack) transport as dead/useless.

Class Details

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



Tags:

author:  Chris Corbyn
filesource:  Source Code for this file


[ Top ]


Class Methods


constructor __construct [line 34]

Swift_Transport_FailoverTransport __construct( )

Creates a new FailoverTransport.



Tags:

access:  public


Overridden in child classes as:

Swift_FailoverTransport::__construct()
Creates a new FailoverTransport with $transports.

Overrides Swift_Transport_LoadBalancedTransport::__construct() (Creates a new LoadBalancedTransport.)

[ Top ]

method send [line 47]

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

Send the given Message.

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




Tags:

access:  public


Overrides Swift_Transport_LoadBalancedTransport::send() (Send the given Message.)

Parameters:

Swift_Mime_Message   $message  
string[]   &$failedRecipients   to collect failures by-reference

[ Top ]

method _getNextTransport [line 82]

void _getNextTransport( )



Tags:

access:  protected


Overrides Swift_Transport_LoadBalancedTransport::_getNextTransport() (Rotates the transport list around and returns the first instance.)

[ Top ]

method _killCurrentTransport [line 91]

void _killCurrentTransport( )



Tags:

access:  protected


Overrides Swift_Transport_LoadBalancedTransport::_killCurrentTransport() (Tag the currently used (top of stack) transport as dead/useless.)

[ Top ]


Documentation generated on Mon, 05 Sep 2011 20:33:19 -0500 by phpDocumentor 1.4.3