Class Guzzle\Batch\BatchCommandTransfer

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

Efficiently transfers multiple commands in parallel per client 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\BatchCommandTransfer

Public Methods

Hide inherited methods

MethodDescriptionDefined By
__construct() Guzzle\Batch\BatchCommandTransfer
createBatches() Creates batches by grouping commands by their associated client {@inheritdoc} Guzzle\Batch\BatchCommandTransfer
transfer() Guzzle\Batch\BatchCommandTransfer

Property Details

$batchSize protected property

Size of each command batch

protected int $batchSize null

Method Details

__construct() public method

public void __construct ( $batchSize 50 )
$batchSize int

Size of each batch

createBatches() public method

Creates batches by grouping commands by their associated client {@inheritdoc}

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

public void transfer ( array $batch )
$batch