Reduces network flooding when sending large amounts of mail.

package Swift
subpackage Plugins
author Chris Corbyn

 Methods

Not used.

beforeSendPerformed(\Swift_Events_SendEvent $evt) 

Parameters

Attach $is to this stream.

bind(\Swift_InputByteStream $is) 

The stream acts as an observer, receiving all data that is written. All write() and flushBuffers() operations will be mirrored.

Parameters

Invoked immediately following a command being sent.

commandSent(\Swift_Events_CommandEvent $evt) 

Parameters

Not used.

commit() 

Exceptions

\Swift_IoException

Not used.

flushBuffers() 

Exceptions

\Swift_IoException

Get the total number of bytes received from the server.

getBytesIn() : int

Returns

int

Get the total number of bytes sent to the server.

getBytesOut() : int

Returns

int

Reset the internal counters to zero.

reset() 

Invoked immediately following a response coming back.

responseReceived(\Swift_Events_ResponseEvent $evt) 

Parameters

Invoked immediately after the Message is sent.

sendPerformed(\Swift_Events_SendEvent $evt) 

Parameters

Remove an already bound stream.

unbind(\Swift_InputByteStream $is) 

If $is is not bound, no errors will be raised. If the stream currently has any buffered data it will be written to $is before unbinding occurs.

Parameters

Called when a message is sent so that the outgoing counter can be increased.

write(string $bytes) : int

Writing may not happen immediately if the stream chooses to buffer. If you want to write these bytes with immediate effect, call commit() after calling write().

This method returns the sequence ID of the write (i.e. 1 for first, 2 for second, etc etc).

Parameters

$bytes

string

Exceptions

\Swift_IoException

Returns

int

 Properties

 

$_in : int
access private
 

$_mirrors 
 

$_out : int
access private