Interface BatchInterface
Interface for efficiently transferring items in a queue using batches
Direct known implementers
Indirect known implementers
Aws\DynamoDb\Model\BatchRequest\WriteRequestBatch,
Aws\S3\Model\DeleteObjectsBatch,
Guzzle\Batch\ExceptionBufferingBatch,
Guzzle\Batch\FlushingBatch,
Guzzle\Batch\HistoryBatch,
Guzzle\Batch\NotifyingBatch
Methods summary
-
publicadd ( mixed $item )Add an item to the queue
-
publicflush ( )Flush the batch and transfer the items
-
publicisEmpty ( )Check if the batch is empty and has further items to transfer
Methods detail
Add an item to the queue
Parameters
- $item
mixed
$item Item to add
Returns
Flush the batch and transfer the items
Returns
arrayReturns an array flushed items
Check if the batch is empty and has further items to transfer
Returns
boolean