Open Journal Systems
3.3.0
|
Public Member Functions | |
__construct ($batchSize=50) | |
createBatches (\SplQueue $queue) | |
transfer (array $batch) | |
Protected Attributes | |
$batchSize | |
Batch transfer strategy used to efficiently transfer a batch of requests. This class is to be used with {
Definition at line 14 of file BatchRequestTransfer.php.
Guzzle\Batch\BatchRequestTransfer::__construct | ( | $batchSize = 50 | ) |
Constructor used to specify how large each batch should be
int | $batchSize | Size of each batch |
Definition at line 27 of file BatchRequestTransfer.php.
References Guzzle\Batch\BatchRequestTransfer\$batchSize.
Guzzle\Batch\BatchRequestTransfer::createBatches | ( | \SplQueue | $queue | ) |
Creates batches of requests by grouping requests by their associated curl multi object. {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 36 of file BatchRequestTransfer.php.
Guzzle\Batch\BatchRequestTransfer::transfer | ( | array | $batch | ) |
Transfer an array of items
array | $batch | Array of items to transfer |
Implements Guzzle\Batch\BatchTransferInterface.
Definition at line 62 of file BatchRequestTransfer.php.
|
protected |
Size of each command batch
Definition at line 20 of file BatchRequestTransfer.php.
Referenced by Guzzle\Batch\BatchRequestTransfer\__construct().