Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct (BatchTransferInterface $transferStrategy, BatchDivisorInterface $divisionStrategy) | |
add ($item) | |
flush () | |
isEmpty () | |
Protected Member Functions | |
createBatches () | |
Protected Attributes | |
$dividedBatches | |
$divisionStrategy | |
$queue | |
$transferStrategy | |
Default batch implementation used to convert queued items into smaller chunks of batches using a {
Any exception encountered during a flush operation will throw a {
Guzzle\Batch\Batch::__construct | ( | BatchTransferInterface | $transferStrategy, |
BatchDivisorInterface | $divisionStrategy | ||
) |
BatchTransferInterface | $transferStrategy | Strategy used to transfer items |
BatchDivisorInterface | $divisionStrategy | Divisor used to create batches |
Definition at line 45 of file Batch.php.
References Guzzle\Batch\Batch\$divisionStrategy, and Guzzle\Batch\Batch\$transferStrategy.
Guzzle\Batch\Batch::add | ( | $item | ) |
Add an item to the queue
mixed | $item | Item to add |
Implements Guzzle\Batch\BatchInterface.
|
protected |
Create batches for any queued items
Definition at line 92 of file Batch.php.
Referenced by Guzzle\Batch\Batch\flush().
Guzzle\Batch\Batch::flush | ( | ) |
Flush the batch and transfer the items
Implements Guzzle\Batch\BatchInterface.
Definition at line 61 of file Batch.php.
References Guzzle\Batch\Batch\createBatches().
Guzzle\Batch\Batch::isEmpty | ( | ) |
Check if the batch is empty and has further items to transfer
Implements Guzzle\Batch\BatchInterface.
|
protected |
|
protected |
Definition at line 39 of file Batch.php.
Referenced by Guzzle\Batch\Batch\__construct().
|
protected |
|
protected |
Definition at line 33 of file Batch.php.
Referenced by Guzzle\Batch\Batch\__construct().