50 $this->_transports = $transports;
51 $this->_deadTransports = array();
61 return array_merge($this->_transports, $this->_deadTransports);
71 return count($this->_transports) > 0;
79 $this->_transports = array_merge($this->_transports, $this->_deadTransports);
87 foreach ($this->_transports as $transport)
105 $maxTransports = count($this->_transports);
108 for (
$i = 0;
$i < $maxTransports
113 if (!$transport->isStarted())
117 if ($sent = $transport->send($message, $failedRecipients))
128 if (count($this->_transports) == 0)
131 'All Transports in LoadBalancedTransport failed, or no Transports available'
145 foreach ($this->_transports as $transport)
147 $transport->registerPlugin($plugin);
161 if ($next = array_shift($this->_transports))
163 $this->_transports[] = $next;
175 if ($transport = array_pop($this->_transports))
184 $this->_deadTransports[] = $transport;