Description
Located in File: /vendors/swiftMailer/classes/Swift/Plugins/BandwidthMonitorPlugin.php
Reduces network flooding when sending large amounts of mail.
Classes extended from Swift_Plugins_BandwidthMonitorPlugin:
- Swift_Plugins_ThrottlerPlugin
- Throttles the rate at which emails are sent.
Method Detail
Summary:
void
write
(
string $bytes)
Method bind (line 111)
Implementation of:
- Swift_InputByteStream::bind()
- Attach $is to this stream.
Attach $is to this stream.
The stream acts as an observer, receiving all data that is written. All write() and flushBuffers() operations will be mirrored.
Parameters
Info
Method commit (line 100)
void commit(
)
Implementation of:
- Swift_InputByteStream::commit()
- For any bytes that are currently buffered inside the stream, force them off the buffer.
Not used.
Info
Method flushBuffers (line 138)
void flushBuffers(
)
Implementation of:
- Swift_InputByteStream::flushBuffers()
- Flush the contents of the stream (empty it) and set the internal pointer to the beginning.
Not used.
Info
Method getBytesIn (line 159)
int getBytesIn(
)
Get the total number of bytes received from the server.
Info
Method getBytesOut (line 150)
int getBytesOut(
)
Get the total number of bytes sent to the server.
Info
Method reset (line 167)
void reset(
)
Reset the internal counters to zero.
Info
Method unbind (line 124)
Implementation of:
- Swift_InputByteStream::unbind()
- Remove an already bound stream.
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.
Parameters
Info
Method write (line 88)
void write(
string
$bytes)
Implementation of:
- Swift_InputByteStream::write()
- Writes $bytes to the end of the stream.
Called when a message is sent so that the outgoing counter can be increased.
Parameters
Info