forked from apache/pulsar
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Issue apache#3712][python-client] exposing InitialPosition managemen…
…t in the ConsumerConfiguration. (apache#3714) ### Motivation PR apache#3567 introduced the SubscriptionInitialPosition option in ConsumerConfiguration in the CPP client but did not exposed any methods to be able to do it with the Python client. This PR aims to expose the code introduced in the previous PR to allows Python user to choose the initial position of the consumer in python. ### Modifications - Implemented a boost object to expose InitialPosition Enum. - Added to boost ConsumerConfiguration object the getter/setter of the InitialPosition attribute. - Added a initial_position parameter to Client.subscribe in order to modify the ConsumerConfiguration instance created. ### Verifying this change This change is a trivial rework / code cleanup without any test coverage.
- Loading branch information
Showing
4 changed files
with
48 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters