|
Open Monograph Press
3.3.0
|
Public Member Functions | |
| __construct ($batchSize=50) | |
| createBatches (\SplQueue $queue) | |
| transfer (array $batch) | |
Protected Attributes | |
| $batchSize | |
Efficiently transfers multiple commands in parallel per client This class is to be used with {
Definition at line 15 of file BatchCommandTransfer.php.
| Guzzle\Batch\BatchCommandTransfer::__construct | ( | $batchSize = 50 | ) |
| int | $batchSize | Size of each batch |
Definition at line 26 of file BatchCommandTransfer.php.
References Guzzle\Batch\BatchCommandTransfer\$batchSize.
| Guzzle\Batch\BatchCommandTransfer::createBatches | ( | \SplQueue | $queue | ) |
Creates batches by grouping commands by their associated client {Divide a queue of items into an array batches
| \SplQueue | $queue | Queue of items to divide into batches. Items are removed as they are iterated. |
Implements Guzzle\Batch\BatchDivisorInterface.
Definition at line 35 of file BatchCommandTransfer.php.
| Guzzle\Batch\BatchCommandTransfer::transfer | ( | array | $batch | ) |
Transfer an array of items
| array | $batch | Array of items to transfer |
Implements Guzzle\Batch\BatchTransferInterface.
Definition at line 58 of file BatchCommandTransfer.php.
|
protected |
Size of each command batch
Definition at line 21 of file BatchCommandTransfer.php.
Referenced by Guzzle\Batch\BatchCommandTransfer\__construct().