Class Swift_Plugins_BandwidthMonitorPlugin
Reduces network flooding when sending large amounts of mail.
Public Methods
Method Details
Not used.
public void beforeSendPerformed ( Swift_Events_SendEvent $evt ) | ||
$evt |
Attach $is to this stream.
The stream acts as an observer, receiving all data that is written. All {@link write()} and {@link flushBuffers()} operations will be mirrored.
public void bind ( Swift_InputByteStream $is ) | ||
$is | Swift_InputByteStream |
Invoked immediately following a command being sent.
public void commandSent ( Swift_Events_CommandEvent $evt ) | ||
$evt | Swift_Events_CommandEvent |
Not used.
public void commit ( ) |
Not used.
public void flushBuffers ( ) |
Get the total number of bytes received from the server.
public int getBytesIn ( ) |
Get the total number of bytes sent to the server.
public int getBytesOut ( ) |
Reset the internal counters to zero.
public void reset ( ) |
Invoked immediately following a response coming back.
public void responseReceived ( Swift_Events_ResponseEvent $evt ) | ||
$evt | Swift_Events_ResponseEvent |
Invoked immediately after the Message is sent.
public void sendPerformed ( Swift_Events_SendEvent $evt ) | ||
$evt | Swift_Events_SendEvent |
Remove an already bound stream.
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.
public void unbind ( Swift_InputByteStream $is ) | ||
$is | Swift_InputByteStream |
Called when a message is sent so that the outgoing counter can be increased.
public void write ( $bytes ) | ||
$bytes | string |