[#BloombergLP-bdlmt-MultiQueueThreadPool-batchSize]
= xref:BloombergLP.adoc[BloombergLP]::xref:BloombergLP/bdlmt.adoc[bdlmt]::xref:BloombergLP/bdlmt/MultiQueueThreadPool.adoc[MultiQueueThreadPool]::batchSize
:relfileprefix: ../../../
:mrdocs:

Return the batch size of queue `id`, or &hyphen;1 if invalid&period;

== Synopsis

Declared in `&lt;bdlmt&lowbar;multiqueuethreadpool&period;h&gt;`

[source,cpp,subs="verbatim,replacements,macros,-callouts"]
----
int
batchSize(int id) const;
----

== Description

Return an instantaneous snapshot of the execution batch size (see &lsqb;&rsqb;Execution Batch Size)) of the queue associated with the specified `id`, or &hyphen;1 if `id` is not a valid queue id&period; 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&period;

== Return Value

execution batch size of the queue, or &hyphen;1 if `id` is not a valid queue id

== Parameters

[cols="1,4"]
|===
| Name| Description
| *id*
| queue identifier
|===


[.small]#Created with https://www.mrdocs.com[MrDocs]#
