|
Open Journal Systems
3.3.0
|
Public Member Functions | |
| __construct (BatchInterface $decoratedBatch, $threshold) | |
| add ($item) | |
| getThreshold () | |
| setThreshold ($threshold) | |
Public Member Functions inherited from Guzzle\Batch\AbstractBatchDecorator | |
| __call ($method, array $args) | |
| __construct (BatchInterface $decoratedBatch) | |
| flush () | |
| getDecorators () | |
| isEmpty () | |
Protected Attributes | |
| $currentTotal = 0 | |
| $threshold | |
Protected Attributes inherited from Guzzle\Batch\AbstractBatchDecorator | |
| $decoratedBatch | |
BatchInterface decorator used to add automatic flushing of the queue when the size of the queue reaches a threshold.
Definition at line 8 of file FlushingBatch.php.
| Guzzle\Batch\FlushingBatch::__construct | ( | BatchInterface | $decoratedBatch, |
| $threshold | |||
| ) |
| BatchInterface | $decoratedBatch | BatchInterface that is being decorated |
| int | $threshold | Flush when the number in queue matches the threshold |
Definition at line 26 of file FlushingBatch.php.
References Guzzle\Batch\AbstractBatchDecorator\$decoratedBatch, and Guzzle\Batch\FlushingBatch\$threshold.
| Guzzle\Batch\FlushingBatch::add | ( | $item | ) |
Add an item to the queue
| mixed | $item | Item to add |
Reimplemented from Guzzle\Batch\AbstractBatchDecorator.
Definition at line 56 of file FlushingBatch.php.
| Guzzle\Batch\FlushingBatch::getThreshold | ( | ) |
Get the auto-flush threshold
Definition at line 51 of file FlushingBatch.php.
References Guzzle\Batch\FlushingBatch\$threshold.
| Guzzle\Batch\FlushingBatch::setThreshold | ( | $threshold | ) |
Set the auto-flush threshold
| int | $threshold | The auto-flush threshold |
Definition at line 39 of file FlushingBatch.php.
References Guzzle\Batch\FlushingBatch\$threshold.
|
protected |
Current number of items known to be in the queue
Definition at line 20 of file FlushingBatch.php.
|
protected |
The threshold for which to automatically flush
Definition at line 14 of file FlushingBatch.php.
Referenced by Guzzle\Batch\FlushingBatch\__construct(), Guzzle\Batch\FlushingBatch\getThreshold(), and Guzzle\Batch\FlushingBatch\setThreshold().