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

The minimum time by which the deadline for each incoming message is extended. More...

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

Public Types

using Type = std::chrono::seconds
 

Detailed Description

The minimum time by which the deadline for each incoming message is extended.

While waiting for an ack or nack from the application the Cloud Pub/Sub C++ client library will extend the deadline by at least this amount. The default minimum extension is 1 minute. An application may wish to reduce this extension so that the Pub/Sub service will resend a message sooner when it does not hear back from a Subscriber. An application may wish to increase this extension time to avoid duplicate message delivery.

The value is clamped between 10 seconds and 10 minutes. Furthermore, if the application configures MaxDeadlineExtensionOption, then MinDeadlineExtensionOption is clamped between 10 seconds and the value of MaxDeadlineExtensionOption.

Definition at line 252 of file options.h.

Member Typedef Documentation

◆ Type

Definition at line 253 of file options.h.