15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_PULL_ACK_HANDLER_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_PULL_ACK_HANDLER_H
18#include "google/cloud/pubsub/version.h"
19#include "google/cloud/future.h"
20#include "google/cloud/status.h"
26GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
80 auto impl = std::move(impl_);
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
101 auto impl = std::move(impl_);
128
129
131 : impl_(std::move(impl)) {}
134 std::unique_ptr<
Impl> impl_;
137GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
Status(StatusCode code, std::string message, ErrorInfo info={})
friend friend class future
Allow applications to mock an PullAckHandler.
Definition: pull_ack_handler.h:110
virtual std::int32_t delivery_attempt() const
The implementation for PullAckHandler::delivery_attempt()
Definition: pull_ack_handler.h:124
virtual future< Status > ack()
The implementation for PullAckHandler::ack()
Definition: pull_ack_handler.h:114
virtual future< Status > nack()
The implementation for PullAckHandler::nack()
Definition: pull_ack_handler.h:119
Defines the interface to acknowledge and reject messages.
Definition: pull_ack_handler.h:50
future< Status > ack() &&
Acknowledges the message associated with this handler.
Definition: pull_ack_handler.h:79
PullAckHandler & operator=(PullAckHandler &&)=default
PullAckHandler(std::unique_ptr< Impl > impl)
Applications may use this constructor in their mocks.
Definition: pull_ack_handler.h:130
future< Status > nack() &&
Rejects the message associated with this handler.
Definition: pull_ack_handler.h:100
std::int32_t delivery_attempt() const
Returns the approximate number of times that Cloud Pub/Sub has attempted to deliver the associated me...
Definition: pull_ack_handler.h:107
PullAckHandler(PullAckHandler &&)=default
Contains all the Cloud Pub/Sub C++ client types and functions.
Definition: ack_handler.h:25
The namespace Google Cloud Platform C++ client libraries.
future< typename internal::make_ready_return< T >::type > make_ready_future(T &&t)