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
-
public
add ( mixed $item )
Add an item to the queue
-
public
flush ( )
Flush the batch and transfer the items
-
public
isEmpty ( )
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
array
Returns an array flushed items
Check if the batch is empty and has further items to transfer
Returns
boolean