Google Cloud Pub/Sub C++ Client  2.5.0
A C++ Client Library for Google Cloud Pub/Sub
Public Types | List of all members
google::cloud::pubsub::MaxPendingMessagesOption Struct Reference

The maximum number of pending messages. More...

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

Public Types

using Type = std::size_t

Detailed Description

The maximum number of pending messages.

After a publisher flushes a batch of messages the batch is (obviously) not received immediately by the service. While the batch remains pending it potentially consumes memory resources in the client (and/or the service).

Some applications may have constraints on the number of bytes and/or messages they can tolerate in this pending state, and may prefer to block or reject messages.

Definition at line 138 of file options.h.

Member Typedef Documentation

◆ Type

Definition at line 139 of file options.h.