Google Cloud Storage C++ Client  1.32.1
A C++ Client Library for Google Cloud Storage
Public Types | List of all members
google::cloud::storage::v1::ConnectionPoolSizeOption Struct Reference

Set the maximum connection pool size. More...

#include <google/cloud/storage/options.h>

Public Types

using Type = std::size_t
 

Detailed Description

Set the maximum connection pool size.

The C++ client library uses this value to limit the growth of the connection pool. Once an operation (a RPC or a download) completes the connection used for that operation is returned to the pool. If the pool is full the connection is immediately released. If the pool has room the connection is cached for the next RPC or download.

Note
The behavior of this pool may change in the future, depending on the low-level implementation details of the library.
The library does not create connections proactively, setting a high value may result in very few connections if your application does not need them.
Warning
The library may create more connections than this option configures, for example if your application requests many simultaneous downloads.

Definition at line 108 of file options.h.

Member Typedef Documentation

◆ Type

Definition at line 109 of file options.h.