TYPO3
7.6
|
Public Member Functions | |
__construct ($path) | |
isStarted () | |
start () | |
stop () | |
setRetryLimit ($limit) | |
queueMessage (Swift_Mime_Message $message) | |
recover ($timeout=900) | |
flushQueue (Swift_Transport $transport, &$failedRecipients=null) | |
Public Member Functions inherited from Swift_ConfigurableSpool | |
setMessageLimit ($limit) | |
getMessageLimit () | |
setTimeLimit ($limit) | |
getTimeLimit () | |
Protected Member Functions | |
getRandomString ($count) | |
Private Attributes | |
$_path | |
$_retryLimit = 10 | |
Stores Messages on the filesystem.
Definition at line 17 of file FileSpool.php.
__construct | ( | $path | ) |
Create a new FileSpool.
string | $path |
Swift_IoException |
Definition at line 36 of file FileSpool.php.
flushQueue | ( | Swift_Transport | $transport, |
& | $failedRecipients = null |
||
) |
Sends messages using the given transport instance.
Swift_Transport | $transport | A transport instance |
string[] | $failedRecipients An array of failures by-reference |
Implements Swift_Spool.
Definition at line 141 of file FileSpool.php.
References Swift_ConfigurableSpool\getMessageLimit(), Swift_ConfigurableSpool\getTimeLimit(), Swift_Transport\isStarted(), Swift_Transport\send(), and Swift_Transport\start().
|
protected |
Returns a random string needed to generate a fileName for the queue.
int | $count |
Definition at line 196 of file FileSpool.php.
Referenced by queueMessage().
isStarted | ( | ) |
Tests if this Spool mechanism has started.
Implements Swift_Spool.
Definition at line 52 of file FileSpool.php.
queueMessage | ( | Swift_Mime_Message | $message | ) |
Queues a message.
Swift_Mime_Message | $message | The message to store |
Swift_IoException |
Implements Swift_Spool.
Definition at line 92 of file FileSpool.php.
References $_retryLimit, and getRandomString().
recover | ( | $timeout = 900 | ) |
Execute a recovery if for any reason a process is sending for too long.
int | $timeout | in second Defaults is for very slow smtp responses |
Definition at line 119 of file FileSpool.php.
setRetryLimit | ( | $limit | ) |
Allow to manage the enqueuing retry limit.
Default, is ten and allows over 64^20 different fileNames
int | $limit |
Definition at line 78 of file FileSpool.php.
start | ( | ) |
stop | ( | ) |
|
private |
The spool directory
Definition at line 20 of file FileSpool.php.
|
private |
Definition at line 27 of file FileSpool.php.
Referenced by queueMessage().