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::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.

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 89 of file options.h.

Member Typedef Documentation

◆ Type

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

Definition at line 90 of file options.h.