[#BloombergLP-bdlmt-MultiQueueThreadPool_Queue-setBatchSize] = xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/MultiQueueThreadPool_Queue.adoc[MultiQueueThreadPool_Queue]::setBatchSize :relfileprefix: ../../../ :mrdocs: Set this queue's job execution batch size. == Synopsis Declared in `<bdlmt_multiqueuethreadpool.h>` [source,cpp,subs="verbatim,replacements,macros,-callouts"] ---- void setBatchSize(int batchSize); ---- == Description Configure this queue to process jobs in groups of the specified `batchSize` (see {`Job Execution Batch Size`}). When a thread is selecting jobs for processing, if fewer than `batchSize` jobs are available then only the available jobs will be processed in the current batch. The behavior is undefined unless `1 <= batchSize`. Note that the initial value for the execution batch size is 1 for all queues. == Parameters [cols="1,4"] |=== | Name| Description | *batchSize* | number of jobs to process per batch |=== [.small]#Created with https://www.mrdocs.com[MrDocs]#