Class Swift_LoadBalancedTransport

InheritanceSwift_LoadBalancedTransport » Swift_Transport_LoadBalancedTransport
ImplementsSwift_Transport

Redundantly and rotationally uses several Transport implementations when sending.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Creates a new LoadBalancedTransport with $transports. Swift_LoadBalancedTransport
getLastUsedTransport() Get the Transport used in the last successful send operation. Swift_Transport_LoadBalancedTransport
getTransports() Get $transports to delegate to. Swift_Transport_LoadBalancedTransport
isStarted() Test if this Transport mechanism has started. Swift_Transport_LoadBalancedTransport
newInstance() Create a new LoadBalancedTransport instance. Swift_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

Protected Methods

Hide inherited methods

MethodDescriptionDefined By
_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. Swift_Transport_LoadBalancedTransport

Method Details

__construct() public method

Creates a new LoadBalancedTransport with $transports.

public void __construct ( $transports = [] )
$transports array
newInstance() public static method

Create a new LoadBalancedTransport instance.

public static Swift_LoadBalancedTransport newInstance ( $transports = [] )
$transports array