Skip to content

Commit

Permalink
Return config&
Browse files Browse the repository at this point in the history
  • Loading branch information
shibd committed Dec 29, 2022
1 parent 448ebb4 commit 58e6c03
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion include/pulsar/ConsumerConfiguration.h
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ class PULSAR_PUBLIC ConsumerConfiguration {
*
* @param subscriptionMode the subscription mode value
*/
void setSubscriptionMode(SubscriptionMode subscriptionMode);
ConsumerConfiguration& setSubscriptionMode(SubscriptionMode subscriptionMode);

/**
* Get subscription mode.
Expand Down
3 changes: 2 additions & 1 deletion lib/ConsumerConfiguration.cc
Original file line number Diff line number Diff line change
Expand Up @@ -287,8 +287,9 @@ const BatchReceivePolicy& ConsumerConfiguration::getBatchReceivePolicy() const {
return impl_->batchReceivePolicy;
}

void ConsumerConfiguration::setSubscriptionMode(SubscriptionMode subscriptionMode) {
ConsumerConfiguration& ConsumerConfiguration::setSubscriptionMode(SubscriptionMode subscriptionMode) {
impl_->subscriptionMode = subscriptionMode;
return *this;
}

SubscriptionMode ConsumerConfiguration::getSubscriptionMode() const { return impl_->subscriptionMode; }
Expand Down

0 comments on commit 58e6c03

Please sign in to comment.