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#include <memory>
24
25namespace pulsar {
26
27struct BatchReceivePolicyImpl;
28
51class PULSAR_PUBLIC BatchReceivePolicy {
52 public:
57
64 BatchReceivePolicy(int maxNumMessage, long maxNumBytes, long timeoutMs);
65
71 long getTimeoutMs() const;
72
77 int getMaxNumMessages() const;
78
83 long getMaxNumBytes() const;
84
85 private:
86 std::shared_ptr<BatchReceivePolicyImpl> impl_;
87};
88} // namespace pulsar
89
90#endif /* BATCH_RECEIVE_POLICY_HPP_ */
Definition: BatchReceivePolicy.h:51
BatchReceivePolicy(int maxNumMessage, long maxNumBytes, long timeoutMs)
Definition: Authentication.h:30