Google Cloud C++ Client  1.32.1
C++ Client Library for Google Cloud Platform
Public Types | List of all members
google::cloud::v1::GrpcBackgroundThreadsFactoryOption Struct Reference

Changes the BackgroundThreadsFactory. More...

#include <google/cloud/grpc_options.h>

Public Types

using Type = BackgroundThreadsFactory

Detailed Description

Changes the BackgroundThreadsFactory.

Connections need to perform background work on behalf of the application. Normally they just create a background thread and a CompletionQueue for this work, but the application may need more fine-grained control of their threads.

In this case the application can provide its own BackgroundThreadsFactory and it assumes responsibility for creating one or more threads blocked on its CompletionQueue::Run().

GrpcBackgroundThreadPoolSizeOption, GrpcCompletionQueueOption, and GrpcBackgroundThreadsFactoryOption are mutually exclusive. This option will be ignored if GrpcCompletionQueueOption is set.

Definition at line 145 of file grpc_options.h.

Member Typedef Documentation

◆ Type

Definition at line 146 of file grpc_options.h.