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

The maximum hold time for the messages. More...

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

Public Types

using Type = std::chrono::microseconds
 

Detailed Description

The maximum hold time for the messages.

Note
The implementation depends on the granularity of your OS timers. It is possible that messages are held for slightly longer times than the value set here.
The first message in a batch starts the hold time counter. New messages do not extend the life of the batch. For example, if you have set the holding time to 10 milliseconds, start a batch with message 1, and publish a second message 5 milliseconds later, the second message will be flushed approximately 5 milliseconds after it is published.

Definition at line 78 of file options.h.

Member Typedef Documentation

◆ Type

using google::cloud::pubsub::v1::MaxHoldTimeOption::Type = std::chrono::microseconds

Definition at line 79 of file options.h.