Class Guzzle\Batch\BatchRequestTransfer

InheritanceGuzzle\Batch\BatchRequestTransfer
ImplementsGuzzle\Batch\BatchDivisorInterface, Guzzle\Batch\BatchTransferInterface

Batch transfer strategy used to efficiently transfer a batch of requests.

This class is to be used with {@see Guzzle\Batch\BatchInterface}

Protected Properties

Hide inherited properties

PropertyTypeDescriptionDefined By
$batchSize int Size of each command batch Guzzle\Batch\BatchRequestTransfer

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Constructor used to specify how large each batch should be Guzzle\Batch\BatchRequestTransfer
createBatches() Creates batches of requests by grouping requests by their associated curl multi object. Guzzle\Batch\BatchRequestTransfer
transfer() Guzzle\Batch\BatchRequestTransfer

Property Details

$batchSize protected property

Size of each command batch

protected int $batchSize null

Method Details

__construct() public method

Constructor used to specify how large each batch should be

public void __construct ( $batchSize 50 )
$batchSize int

Size of each batch

createBatches() public method

Creates batches of requests by grouping requests by their associated curl multi object.

{@inheritdoc}

public void createBatches ( SplQueue $queue )
$queue
transfer() public method

public void transfer ( array $batch )
$batch