Skip to content

Conversation

@jai1
Copy link
Contributor

@jai1 jai1 commented Apr 17, 2017

Motivation

Want to remove the deprecation flags, methods and -Dpulsar=cms and create a wrapper for Yahoo CPP users like we have for Java.
Since in CPP we can’t forward declare inner classes I can’t forward declare pulsar::ProducerConfiguration::Impl And add it to my wrapper i.e https://gist.github.com/jai1/9bfa90ee237a9e2ca7a175e893cf4faa is not possible - hence the changes.

Modifications

Created separate files for
a. ClientConfiguration.h
b. ProducerConfiguration.h
c. ConsumerConfiguration.h
d. CompressionType.h

Created Separate Impl for
a. ClientConfigurationImpl.h
b. ProducerConfigurationImpl.h
c. ConsumerConfigurationImpl.h

Removed deprecated flags and methods from client

Result

Noop from user perspective and the binary compatibility is also not broken.

@jai1 jai1 self-assigned this Apr 17, 2017
@jai1 jai1 added the c++ label Apr 17, 2017
@jai1 jai1 added this to the 1.18 milestone Apr 17, 2017
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Add standard header

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Standard header

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

standard header

@jai1 jai1 force-pushed the CreatingWrapperForCPP branch from 55a89ab to 70bae90 Compare April 17, 2017 22:38
Copy link
Contributor

@merlimat merlimat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@merlimat merlimat merged commit d58cc0b into apache:master Apr 19, 2017
hrsakai pushed a commit to hrsakai/pulsar that referenced this pull request Dec 10, 2020
Signed-off-by: jonyhy96 <hy352144278@gmail.com>

Fixes apache#257

### Motivation

Once the connection is closed the reconnectToBroker logic of both producer and consumer will try to reconnect to the broker infinatly.

### Modifications

Add a field in the Options represent the max number of retries and not break current behavior if this field is not fullfilled.
hangc0276 pushed a commit to hangc0276/pulsar that referenced this pull request May 26, 2021
* Add maintainers from community

* Fix indent
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants