15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_SUBSCRIBER_OPTIONS_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_SUBSCRIBER_OPTIONS_H
18#include "google/cloud/pubsub/options.h"
19#include "google/cloud/pubsub/version.h"
20#include "google/cloud/options.h"
27GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
29GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
32namespace pubsub_internal {
33GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
35GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
39GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
100
101
102
103
104 GOOGLE_CLOUD_CPP_DEPRECATED(
"Use `google::cloud::Options` instead")
108
109
110
111
112
113
114
115
116
117
118
119
120 GOOGLE_CLOUD_CPP_DEPRECATED(
"Use `google::cloud::Options` instead")
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141 GOOGLE_CLOUD_CPP_DEPRECATED(
142 "use `google::cloud::Options` and `MaxDeadlineTimeOption` instead")
148
149
150
151
152
153 GOOGLE_CLOUD_CPP_DEPRECATED(
154 "use `google::cloud::Options` and `MaxDeadlineTimeOption` instead")
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178 GOOGLE_CLOUD_CPP_DEPRECATED(
179 "use `google::cloud::Options` and `MaxDeadlineExtensionOption` instead")
184 GOOGLE_CLOUD_CPP_DEPRECATED(
185 "use `google::cloud::Options` and `MaxDeadlineExtensionOption` instead")
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207 GOOGLE_CLOUD_CPP_DEPRECATED(
208 "use `google::cloud::Options` and `MaxOutstandingMessagesOption` instead")
213 GOOGLE_CLOUD_CPP_DEPRECATED(
214 "use `google::cloud::Options` and `MaxOutstandingMessagesOption` instead")
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236 GOOGLE_CLOUD_CPP_DEPRECATED(
237 "use `google::cloud::Options` and `MaxOutstandingBytesOption` instead")
242 GOOGLE_CLOUD_CPP_DEPRECATED(
243 "use `google::cloud::Options` and `MaxOutstandingBytesOption` instead")
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272 GOOGLE_CLOUD_CPP_DEPRECATED(
273 "use `google::cloud::Options` and `MaxConcurrencyOption` instead")
277
278
279
280
281
282 GOOGLE_CLOUD_CPP_DEPRECATED(
283 "use `google::cloud::Options` and `MaxConcurrencyOption` instead")
289
290
291
292
293
294
295
296
297
298
299
300 GOOGLE_CLOUD_CPP_DEPRECATED(
301 "use `google::cloud::Options` and `ShutdownPollingPeriodOption` instead")
309 GOOGLE_CLOUD_CPP_DEPRECATED(
310 "use `google::cloud::Options` and `ShutdownPollingPeriodOption` instead")
320GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
323namespace pubsub_internal {
324GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
327 return std::move(o.opts_);
330GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
ValueTypeT< T > const & get() const
Options & set(ValueTypeT< T > v)
Configure how a Subscriber handles incoming messages.
Definition: subscriber_options.h:97
std::size_t max_concurrency() const
Maximum number of callbacks scheduled by the library at a time.
Definition: subscriber_options.h:284
std::int64_t max_outstanding_messages() const
Definition: subscriber_options.h:215
SubscriberOptions & set_max_deadline_time(std::chrono::seconds d)
Set the maximum deadline for incoming messages.
Definition: subscriber_options.h:155
SubscriberOptions & set_max_outstanding_messages(std::int64_t message_count)
Set the maximum number of outstanding messages per streaming pull.
SubscriberOptions(Options opts)
Initialize the subscriber options.
SubscriberOptions & set_max_outstanding_bytes(std::int64_t bytes)
Set the maximum number of outstanding bytes per streaming pull.
std::int64_t max_outstanding_bytes() const
Definition: subscriber_options.h:244
SubscriberOptions & set_max_concurrency(std::size_t v)
Set the maximum callback concurrency.
SubscriberOptions & set_max_deadline_extension(std::chrono::seconds extension)
Set the maximum time by which the deadline for each incoming message is extended.
SubscriberOptions()
Initialize the subscriber options with default values.
std::chrono::seconds max_deadline_time() const
The maximum deadline for each incoming message.
Definition: subscriber_options.h:143
std::chrono::milliseconds shutdown_polling_period() const
Definition: subscriber_options.h:311
SubscriberOptions & set_shutdown_polling_period(std::chrono::milliseconds v)
Control how often the session polls for automatic shutdowns.
Definition: subscriber_options.h:302
std::chrono::seconds max_deadline_extension() const
Definition: subscriber_options.h:186
Contains all the Cloud Pub/Sub C++ client types and functions.
Definition: ack_handler.h:25
The namespace Google Cloud Platform C++ client libraries.
The maximum callback concurrency.
Definition: options.h:349
The maximum time by which the deadline for each incoming message is extended.
Definition: options.h:266
The maximum deadline for each incoming message.
Definition: options.h:247
The maximum number of outstanding bytes per streaming pull.
Definition: options.h:324
The maximum number of outstanding messages per streaming pull.
Definition: options.h:306
How often the session polls for automatic shutdowns.
Definition: options.h:364