Skip to content

Conversation

kezhuw
Copy link
Member

@kezhuw kezhuw commented Aug 17, 2025

ZooKeeper::builder should be better:

  1. More exposure chance as a newly introduce method in class ZooKeeper.
  2. No need to import or remember the newly introduced class as most ZooKeeper instances could be built in one chain.

ZooKeeperBuilder is introduced in 3.10.0 so it safe to do this.

Refs: ZOOKEEPER-4697

@kezhuw kezhuw requested a review from eolivelli August 17, 2025 06:27
@kezhuw
Copy link
Member Author

kezhuw commented Aug 21, 2025

This should be superceded by #2308 if we are going that way.

Copy link
Contributor

@anmolnar anmolnar left a comment

Choose a reason for hiding this comment

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

I like this one too.

…lder`

`ZooKeeper::builder` should be better:
1. More exposure chance as a newly introduce method in class `ZooKeeper`.
2. No need to import or remember the newly introduced class as most
   `ZooKeeper` instances could be built in one chain.

`ZooKeeperBuilder` is introduced in 3.10.0 so it safe to do this.

Refs: ZOOKEEPER-4697
@kezhuw kezhuw force-pushed the ZOOKEEPER-4963-ZooKeeper_builder branch from c55021f to 90ec94e Compare August 22, 2025 13:31
@kezhuw kezhuw merged commit d4f555f into apache:master Aug 23, 2025
27 of 31 checks passed
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.

2 participants