Abstract Class Swift_ConfigurableSpool
Inheritance | Swift_ConfigurableSpool |
---|---|
Implements | Swift_Spool |
Subclasses | Swift_FileSpool |
Base class for Spools (implements time and message limits).
Public Methods
Method | Description | Defined By |
---|---|---|
flushQueue() | Sends messages using the given transport instance. | Swift_Spool |
getMessageLimit() | Gets the maximum number of messages to send per flush. | Swift_ConfigurableSpool |
getTimeLimit() | Gets the time limit (in seconds) per flush. | Swift_ConfigurableSpool |
isStarted() | Tests if this Spool mechanism has started. | Swift_Spool |
queueMessage() | Queues a message. | Swift_Spool |
setMessageLimit() | Sets the maximum number of messages to send per flush. | Swift_ConfigurableSpool |
setTimeLimit() | Sets the time limit (in seconds) per flush. | Swift_ConfigurableSpool |
start() | Starts this Spool mechanism. | Swift_Spool |
stop() | Stops this Spool mechanism. | Swift_Spool |
Method Details
Gets the maximum number of messages to send per flush.
public int getMessageLimit ( ) | ||
return | int | The limit |
---|
Gets the time limit (in seconds) per flush.
public int getTimeLimit ( ) | ||
return | int | The limit |
---|
Sets the maximum number of messages to send per flush.
public void setMessageLimit ( $limit ) | ||
$limit | int |
Sets the time limit (in seconds) per flush.
public void setTimeLimit ( $limit ) | ||
$limit | int | The limit |