21#include <pulsar/defines.h>
48struct KeySharedPolicyImpl;
50typedef std::pair<int, int> StickyRange;
51typedef std::vector<StickyRange> StickyRanges;
53class PULSAR_PUBLIC KeySharedPolicy {
58 KeySharedPolicy(
const KeySharedPolicy&);
59 KeySharedPolicy& operator=(
const KeySharedPolicy&);
114 std::shared_ptr<KeySharedPolicyImpl> impl_;
KeySharedPolicy clone() const
KeySharedMode getKeySharedMode() const
KeySharedPolicy & setAllowOutOfOrderDelivery(bool allowOutOfOrderDelivery)
KeySharedPolicy & setKeySharedMode(KeySharedMode keySharedMode)
StickyRanges getStickyRanges() const
KeySharedPolicy & setStickyRanges(const StickyRanges &ranges)
bool isAllowOutOfOrderDelivery() const
KeySharedPolicy & setStickyRanges(std::initializer_list< StickyRange > ranges)
Definition Authentication.h:31
KeySharedMode
Definition KeySharedPolicy.h:34
@ AUTO_SPLIT
Definition KeySharedPolicy.h:39
@ STICKY
Definition KeySharedPolicy.h:45