Documentation

Swift_Transport_LoadBalancedTransport
in package
implements Swift_Transport

Redundantly and rotationally uses several Transports when sending.

Tags
author

Chris Corbyn

Interfaces, Classes and Traits

Swift_Transport
Sends Messages via an abstract Transport subsystem.

Table of Contents

$lastUsedTransport  : Swift_Transport
The Transport used in the last successful send operation.
$transports  : array<string|int, Swift_Transport>
The Transports which are used in rotation.
$deadTransports  : array<string|int, Swift_Transport>
Transports which are deemed useless.
__construct()  : mixed
getLastUsedTransport()  : Swift_Transport
Get the Transport used in the last successful send operation.
getTransports()  : array<string|int, Swift_Transport>
Get $transports to delegate to.
isStarted()  : bool
Test if this Transport mechanism has started.
ping()  : bool
Check if this Transport mechanism is alive.
registerPlugin()  : mixed
Register a plugin.
send()  : int
Send the given Message.
setTransports()  : mixed
Set $transports to delegate to.
start()  : mixed
Start this Transport mechanism.
stop()  : mixed
Stop this Transport mechanism.
getNextTransport()  : Swift_Transport
Rotates the transport list around and returns the first instance.
killCurrentTransport()  : mixed
Tag the currently used (top of stack) transport as dead/useless.

Properties

Methods

isStarted()

Test if this Transport mechanism has started.

public isStarted() : bool
Return values
bool

ping()

Check if this Transport mechanism is alive.

public ping() : bool
Return values
bool

TRUE if the transport is alive

send()

Send the given Message.

public send(Swift_Mime_SimpleMessage $message[, array<string|int, string> &$failedRecipients = null ]) : int

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

Parameters
$message : Swift_Mime_SimpleMessage
$failedRecipients : array<string|int, string> = null

An array of failures by-reference

Return values
int

killCurrentTransport()

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

protected killCurrentTransport() : mixed
Return values
mixed

Search results