22#include <pulsar/defines.h>
23#include <pulsar/ProducerConfiguration.h>
28class ProducerImplBase;
32typedef std::function<void(
Result)> FlushCallback;
33typedef std::shared_ptr<ProducerImplBase> ProducerImplBasePtr;
163 explicit Producer(ProducerImplBasePtr);
165 friend class ClientImpl;
166 friend class PulsarFriend;
167 friend class PulsarWrapper;
169 ProducerImplBasePtr impl_;
172 void producerFailMessages(
Result result);
Definition: MessageId.h:32
Definition: Producer.h:35
const std::string & getSchemaVersion() const
void flushAsync(FlushCallback callback)
Result send(const Message &msg, MessageId &messageId)
void closeAsync(CloseCallback callback)
void sendAsync(const Message &msg, SendCallback callback)
int64_t getLastSequenceId() const
const std::string & getTopic() const
const std::string & getProducerName() const
Result send(const Message &msg)
Definition: Authentication.h:30
Result
Definition: Result.h:31