\Swift_Plugins_BandwidthMonitorPlugin
Reduces network flooding when sending large amounts of mail.
- Author: Chris Corbyn
Synopsis
class Swift_Plugins_BandwidthMonitorPlugin
implements
Swift_Events_SendListener,Swift_Events_CommandListener,Swift_Events_ResponseListener,Swift_InputByteStream
{
- // methods
- public void beforeSendPerformed()
- public void sendPerformed()
- public void commandSent()
- public void responseReceived()
- public void write()
- public void commit()
- public void bind()
- public void unbind()
- public void flushBuffers()
- public int getBytesOut()
- public int getBytesIn()
- public void reset()
Hierarchy
Extended by
Implements
Members
private
- $_in
—
int
The incoming traffic counter. -
$_mirrors
Bound byte streams - $_out
—
int
The outgoing traffic counter.
Methods
public
- beforeSendPerformed() — Not used.
- bind() — Attach $is to this stream.
- commandSent() — Invoked immediately following a command being sent.
- commit() — Not used.
- flushBuffers() — Not used.
- getBytesIn() — Get the total number of bytes received from the server.
- getBytesOut() — Get the total number of bytes sent to the server.
- reset() — Reset the internal counters to zero.
- responseReceived() — Invoked immediately following a response coming back.
- sendPerformed() — Invoked immediately after the Message is sent.
- unbind() — Remove an already bound stream.
- write() — Called when a message is sent so that the outgoing counter can be increased.