Class BatchBuilder
Builder used to create custom batch objects
public static
|
|
public
|
#
autoFlushAt( $threshold )
Automatically flush the batch when the size of the queue reaches a certain threshold. Adds |
public
|
#
keepHistory( )
Maintain a history of all items that have been transferred using the batch. Adds |
public
|
#
bufferExceptions( )
Buffer exceptions thrown during transfer so that you can transfer as much as possible, and after a transfer
completes, inspect each exception that was thrown. Enables the |
public
|
#
notify( mixed $callable )
Notify a callable each time a batch flush completes. Enables the |
public
|
#
transferRequests( integer $batchSize = 50 )
Configures the batch to transfer batches of requests. Associates a \Guzzle\Http\BatchRequestTransfer object as both the transfer and divisor strategy. |
public
|
#
transferCommands( integer $batchSize = 50 )
Configures the batch to transfer batches commands. Associates as \Guzzle\Service\Command\BatchCommandTransfer as both the transfer and divisor strategy. |
public
|
#
createBatchesWith(
Specify the strategy used to divide the queue into an array of batches |
public
|
#
transferWith(
Specify the strategy used to transport the items when flush is called |
public
|
protected
boolean
|
$autoFlush
Whether or not the batch should automatically flush |
#
false
|
protected
boolean
|
$history
Whether or not to maintain a batch history |
#
false
|
protected
boolean
|
$exceptionBuffering
Whether or not to buffer exceptions encountered in transfer |
#
false
|
protected
mixed
|
$afterFlush
Callable to invoke each time a flush completes |
|
protected
|
$transferStrategy
Object used to transfer items in the queue |
|
protected
|
$divisorStrategy
Object used to divide the queue into batches |
|
protected static
array
|
$mapping
of Mapped transfer strategies by handle name |
#
array(
'request' => 'Guzzle\Batch\BatchRequestTransfer',
'command' => 'Guzzle\Batch\BatchCommandTransfer'
)
|