Class Swift_Plugins_BandwidthMonitorPlugin

InheritanceSwift_Plugins_BandwidthMonitorPlugin
ImplementsSwift_Events_CommandListener, Swift_Events_ResponseListener, Swift_Events_SendListener, Swift_InputByteStream
SubclassesSwift_Plugins_ThrottlerPlugin

Reduces network flooding when sending large amounts of mail.

Public Methods

Hide inherited methods

MethodDescriptionDefined By
beforeSendPerformed() Not used. Swift_Plugins_BandwidthMonitorPlugin
bind() Attach $is to this stream. Swift_Plugins_BandwidthMonitorPlugin
commandSent() Invoked immediately following a command being sent. Swift_Plugins_BandwidthMonitorPlugin
commit() Not used. Swift_Plugins_BandwidthMonitorPlugin
flushBuffers() Not used. Swift_Plugins_BandwidthMonitorPlugin
getBytesIn() Get the total number of bytes received from the server. Swift_Plugins_BandwidthMonitorPlugin
getBytesOut() Get the total number of bytes sent to the server. Swift_Plugins_BandwidthMonitorPlugin
reset() Reset the internal counters to zero. Swift_Plugins_BandwidthMonitorPlugin
responseReceived() Invoked immediately following a response coming back. Swift_Plugins_BandwidthMonitorPlugin
sendPerformed() Invoked immediately after the Message is sent. Swift_Plugins_BandwidthMonitorPlugin
unbind() Remove an already bound stream. Swift_Plugins_BandwidthMonitorPlugin
write() Called when a message is sent so that the outgoing counter can be increased. Swift_Plugins_BandwidthMonitorPlugin

Method Details

beforeSendPerformed() public method

Not used.

public void beforeSendPerformed ( Swift_Events_SendEvent $evt )
$evt
bind() public method

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
commandSent() public method

Invoked immediately following a command being sent.

public void commandSent ( Swift_Events_CommandEvent $evt )
$evt Swift_Events_CommandEvent
commit() public method

Not used.

public void commit ( )
flushBuffers() public method

Not used.

public void flushBuffers ( )
getBytesIn() public method

Get the total number of bytes received from the server.

public int getBytesIn ( )
getBytesOut() public method

Get the total number of bytes sent to the server.

public int getBytesOut ( )
reset() public method

Reset the internal counters to zero.

public void reset ( )
responseReceived() public method

Invoked immediately following a response coming back.

public void responseReceived ( Swift_Events_ResponseEvent $evt )
$evt Swift_Events_ResponseEvent
sendPerformed() public method

Invoked immediately after the Message is sent.

public void sendPerformed ( Swift_Events_SendEvent $evt )
$evt Swift_Events_SendEvent
unbind() public method

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
write() public method

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

public void write ( $bytes )
$bytes string