pulsar-client-cpp
Loading...
Searching...
No Matches
BatchReceivePolicy.h
1
19#ifndef BATCH_RECEIVE_POLICY_HPP_
20#define BATCH_RECEIVE_POLICY_HPP_
21
22#include <pulsar/defines.h>
23
24#include <memory>
25
26namespace pulsar {
27
28struct BatchReceivePolicyImpl;
29
52class PULSAR_PUBLIC BatchReceivePolicy {
53 public:
58
65 BatchReceivePolicy(int maxNumMessage, long maxNumBytes, long timeoutMs);
66
72 long getTimeoutMs() const;
73
78 int getMaxNumMessages() const;
79
84 long getMaxNumBytes() const;
85
86 private:
87 std::shared_ptr<BatchReceivePolicyImpl> impl_;
88};
89} // namespace pulsar
90
91#endif /* BATCH_RECEIVE_POLICY_HPP_ */
Definition: BatchReceivePolicy.h:52
BatchReceivePolicy(int maxNumMessage, long maxNumBytes, long timeoutMs)
Definition: Authentication.h:31