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.
[cpp client] implement reference count for close() (apache#3863)
Add reference count feature to keep track of reused instances of a consumer instance, for more details please see commit ff4db8d. *Modifications* - Add refCount instance variable on ConsumerImpl. - Use new safeDecrRefCount() on consumer close() in order to know whether effective close call should occur or not. - Increment reference count when a previous built consumer instance is being used by caller. *Future considerations* Thereafter when feature preventing duplicated consumer is made for PartitionedConsumer, MultiTopicsConsumer and PatternMultiTopicsConsumer, incrRefCount() member could be turned into a pure virtual method.
- Loading branch information
Showing
5 changed files
with
23 additions
and
2 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
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