22#include <pulsar/ProducerConfiguration.h>
23#include <pulsar/defines.h>
29class ProducerImplBase;
33typedef std::function<void(
Result)> FlushCallback;
34typedef std::shared_ptr<ProducerImplBase> ProducerImplBasePtr;
164 explicit Producer(ProducerImplBasePtr);
166 friend class ClientImpl;
167 friend class PulsarFriend;
168 friend class PulsarWrapper;
169 friend class ProducerImpl;
171 ProducerImplBasePtr impl_;
174 void producerFailMessages(
Result result);
Definition MessageId.h:34
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:31
Result
Definition Result.h:32