15#ifndef GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_BLOCKING_PUBLISHER_CONNECTION_H
16#define GOOGLE_CLOUD_CPP_GOOGLE_CLOUD_PUBSUB_BLOCKING_PUBLISHER_CONNECTION_H
18#include "google/cloud/pubsub/backoff_policy.h"
19#include "google/cloud/pubsub/connection_options.h"
20#include "google/cloud/pubsub/internal/publisher_stub.h"
21#include "google/cloud/pubsub/message.h"
22#include "google/cloud/pubsub/publisher_options.h"
23#include "google/cloud/pubsub/retry_policy.h"
24#include "google/cloud/pubsub/topic.h"
25#include "google/cloud/pubsub/version.h"
26#include "google/cloud/future.h"
27#include "google/cloud/internal/non_constructible.h"
28#include "google/cloud/status_or.h"
29#include <initializer_list>
36GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_BEGIN
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
102GOOGLE_CLOUD_CPP_INLINE_NAMESPACE_END
A connection to the Cloud Pub/Sub service to publish events.
Definition: blocking_publisher_connection.h:56
virtual ~BlockingPublisherConnection()=0
virtual StatusOr< std::string > Publish(PublishParams p)
Defines the interface for BlockingPublisher::Publish()
virtual Options options()
Returns the options configured at initialization time.
Definition: blocking_publisher_connection.h:70
The C++ representation for a Cloud Pub/Sub messages.
Definition: message.h:78
Objects of this class identify a Cloud Pub/Sub topic.
Definition: topic.h:37
Contains all the Cloud Pub/Sub C++ client types and functions.
Definition: ack_handler.h:25
std::shared_ptr< BlockingPublisherConnection > MakeBlockingPublisherConnection(Options opts={})
Creates a new BlockingPublisherConnection object to work with BlockingPublisher.
The namespace Google Cloud Platform C++ client libraries.
Wrap the arguments for Publish()
Definition: blocking_publisher_connection.h:61
Topic topic
Definition: blocking_publisher_connection.h:62
Message message
Definition: blocking_publisher_connection.h:63