pulsar-client-cpp
Loading...
Searching...
No Matches
DeadLetterPolicy.h
1
19#ifndef DEAD_LETTER_POLICY_HPP_
20#define DEAD_LETTER_POLICY_HPP_
21
22#include <pulsar/defines.h>
23
24#include <memory>
25#include <string>
26
27namespace pulsar {
28
29struct DeadLetterPolicyImpl;
30
36class PULSAR_PUBLIC DeadLetterPolicy {
37 public:
39
45 const std::string& getDeadLetterTopic() const;
46
53
59 const std::string& getInitialSubscriptionName() const;
60
61 private:
62 friend class DeadLetterPolicyBuilder;
63
64 typedef std::shared_ptr<DeadLetterPolicyImpl> DeadLetterPolicyImplPtr;
65 DeadLetterPolicyImplPtr impl_;
66
67 explicit DeadLetterPolicy(const DeadLetterPolicyImplPtr& impl);
68};
69} // namespace pulsar
70
71#endif /* DEAD_LETTER_POLICY_HPP_ */
Definition DeadLetterPolicyBuilder.h:44
Definition DeadLetterPolicy.h:36
int getMaxRedeliverCount() const
const std::string & getInitialSubscriptionName() const
const std::string & getDeadLetterTopic() const
Definition Authentication.h:31