PHP 클래스 Swift_Transport_LoadBalancedTransport, Halite

저자: Chris Corbyn
상속: implements Swift_Transport
파일 보기 프로젝트 열기: HaliteChallenge/Halite 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_lastUsedTransport Swift_Transport The Transport used in the last successful send operation.
$_transports Swift_Transport[] The Transports which are used in rotation.

공개 메소드들

메소드 설명
__construct ( ) needed as __construct is called from elsewhere explicitly
getLastUsedTransport ( ) : Swift_Transport Get the Transport used in the last successful send operation.
getTransports ( ) : Swift_Transport[] Get $transports to delegate to.
isStarted ( ) : boolean Test if this Transport mechanism has started.
registerPlugin ( Swift_Events_EventListener $plugin ) Register a plugin.
send ( Swift_Mime_Message $message, string[] &$failedRecipients = null ) : integer Send the given Message.
setTransports ( array $transports ) Set $transports to delegate to.
start ( ) Start this Transport mechanism.
stop ( ) Stop this Transport mechanism.

보호된 메소드들

메소드 설명
_getNextTransport ( ) : Swift_Transport Rotates the transport list around and returns the first instance.
_killCurrentTransport ( ) Tag the currently used (top of stack) transport as dead/useless.

메소드 상세

__construct() 공개 메소드

needed as __construct is called from elsewhere explicitly
public __construct ( )

_getNextTransport() 보호된 메소드

Rotates the transport list around and returns the first instance.
protected _getNextTransport ( ) : Swift_Transport
리턴 Swift_Transport

_killCurrentTransport() 보호된 메소드

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

getLastUsedTransport() 공개 메소드

Get the Transport used in the last successful send operation.
public getLastUsedTransport ( ) : Swift_Transport
리턴 Swift_Transport

getTransports() 공개 메소드

Get $transports to delegate to.
public getTransports ( ) : Swift_Transport[]
리턴 Swift_Transport[]

isStarted() 공개 메소드

Test if this Transport mechanism has started.
public isStarted ( ) : boolean
리턴 boolean

registerPlugin() 공개 메소드

Register a plugin.
public registerPlugin ( Swift_Events_EventListener $plugin )
$plugin Swift_Events_EventListener

send() 공개 메소드

Recipient/sender data will be retrieved from the Message API. The return value is the number of recipients who were accepted for delivery.
public send ( Swift_Mime_Message $message, string[] &$failedRecipients = null ) : integer
$message Swift_Mime_Message
$failedRecipients string[] An array of failures by-reference
리턴 integer

setTransports() 공개 메소드

Set $transports to delegate to.
public setTransports ( array $transports )
$transports array

start() 공개 메소드

Start this Transport mechanism.
public start ( )

stop() 공개 메소드

Stop this Transport mechanism.
public stop ( )

프로퍼티 상세

$_lastUsedTransport 보호되어 있는 프로퍼티

The Transport used in the last successful send operation.
protected Swift_Transport $_lastUsedTransport
리턴 Swift_Transport

$_transports 보호되어 있는 프로퍼티

The Transports which are used in rotation.
protected Swift_Transport[] $_transports
리턴 Swift_Transport[]