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

Class: Swift_Transport_LoadBalancedTransport

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

Class Overview


Redudantly and rotationally uses several Transports when sending.


Author(s):

  • Chris Corbyn

Implements interfaces:

Variables

Methods


Child classes:

Swift_Transport_FailoverTransport
Contains a list of redundant Transports so when one fails, the next is used.
Swift_LoadBalancedTransport
Redudantly and rotationally uses several Transport implementations when sending.

Class Details

[line 22]
Redudantly and rotationally uses several Transports when sending.



Tags:

author:  Chris Corbyn
filesource:  Source Code for this file


[ Top ]


Class Variables

$_transports = array()

[line 34]

The Transports which are used in rotation.



Tags:

var:  Swift_Transport
access:  protected

Type:   array


[ Top ]



Class Methods


constructor __construct [line 39]

Swift_Transport_LoadBalancedTransport __construct( )

Creates a new LoadBalancedTransport.



Tags:

access:  public


Overridden in child classes as:

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

[ Top ]

method getTransports [line 59]

array getTransports( $transports)

Get $transports to delegate to.



Tags:

return:  Swift_Transport
access:  public


Parameters:

array   $transports  

[ Top ]

method isStarted [line 69]

boolean isStarted( )

Test if this Transport mechanism has started.



Tags:

access:  public



Implementation of:
Swift_Transport::isStarted()
Test if this Transport mechanism has started.
[ Top ]

method registerPlugin [line 143]

void registerPlugin( Swift_Events_EventListener $plugin)

Register a plugin.



Tags:

access:  public



Implementation of:
Swift_Transport::registerPlugin()
Register a plugin in the Transport.

Parameters:

Swift_Events_EventListener   $plugin  

[ Top ]

method send [line 103]

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


Overridden in child classes as:

Swift_Transport_FailoverTransport::send()
Send the given Message.


Implementation of:
Swift_Transport::send()
Send the given Message.

Parameters:

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

[ Top ]

method setTransports [line 48]

void setTransports( $transports)

Set $transports to delegate to.



Tags:

access:  public


Parameters:

array   $transports   Swift_Transport

[ Top ]

method start [line 77]

void start( )

Start this Transport mechanism.



Tags:

access:  public



Implementation of:
Swift_Transport::start()
Start this Transport mechanism.
[ Top ]

method stop [line 85]

void stop( )

Stop this Transport mechanism.



Tags:

access:  public



Implementation of:
Swift_Transport::stop()
Stop this Transport mechanism.
[ Top ]

method _getNextTransport [line 159]

Swift_Transport _getNextTransport( )

Rotates the transport list around and returns the first instance.



Tags:

access:  protected


Overridden in child classes as:

Swift_Transport_FailoverTransport::_getNextTransport()

[ Top ]

method _killCurrentTransport [line 173]

void _killCurrentTransport( )

Tag the currently used (top of stack) transport as dead/useless.



Tags:

access:  protected


Overridden in child classes as:

Swift_Transport_FailoverTransport::_killCurrentTransport()

[ Top ]


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