Google Cloud Pub/Sub C++ Client 2.13.0
A C++ Client Library for Google Cloud Pub/Sub
|
The maximum callback concurrency. More...
#include <google/cloud/pubsub/options.h>
Public Types | |
using | Type = std::size_t |
The maximum callback concurrency.
The Cloud Pub/Sub C++ client library will schedule parallel callbacks as long as the number of outstanding callbacks is less than this maximum.
Note that this controls the number of callbacks scheduled, not the number of callbacks actually executing at a time. The application needs to create (or configure) the background threads pool with enough parallelism to execute more than one callback at a time.
Some applications may want to share a thread pool across many subscriptions. The additional level of control (scheduled vs. running callbacks) allows applications, for example, to ensure that at most K
threads in the pool are used by any given subscription.
using google::cloud::pubsub::MaxConcurrencyOption::Type = std::size_t |