Swift_ConfigurableSpool
in package
implements
Swift_Spool
Base class for Spools (implements time and message limits).
Tags
Interfaces, Classes and Traits
- Swift_Spool
- Interface for spools.
Table of Contents
- $message_limit : mixed
- The maximum number of messages to send per flush
- $time_limit : mixed
- The time limit per flush
- getMessageLimit() : int
- Gets the maximum number of messages to send per flush.
- getTimeLimit() : int
- Gets the time limit (in seconds) per flush.
- setMessageLimit() : mixed
- Sets the maximum number of messages to send per flush.
- setTimeLimit() : mixed
- Sets the time limit (in seconds) per flush.
Properties
$message_limit
The maximum number of messages to send per flush
private
mixed
$message_limit
$time_limit
The time limit per flush
private
mixed
$time_limit
Methods
getMessageLimit()
Gets the maximum number of messages to send per flush.
public
getMessageLimit() : int
Return values
int —The limit
getTimeLimit()
Gets the time limit (in seconds) per flush.
public
getTimeLimit() : int
Return values
int —The limit
setMessageLimit()
Sets the maximum number of messages to send per flush.
public
setMessageLimit(int $limit) : mixed
Parameters
- $limit : int
Return values
mixed —setTimeLimit()
Sets the time limit (in seconds) per flush.
public
setTimeLimit(int $limit) : mixed
Parameters
- $limit : int
-
The limit