Skip to content

Conversation

@jchambers
Copy link
Contributor

Because the getConnection methods in JedisClusterConnectionHandler are package-private, they can only be implemented by classes inside the redis.clients.jedis package, and the prevents third parties from subclassing JedisClusterConnectionHandler.

Third parties may want to subclass JedisClusterConnectionHandler and related classes to add things like metrics or fault-tolerance measures. Making these methods public allows them to do so.

@sazzad16 sazzad16 added this to the 3.5.0 milestone Dec 14, 2020
Copy link
Contributor

@sazzad16 sazzad16 left a comment

Choose a reason for hiding this comment

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

according to the statement, protected should be enough

@sazzad16 sazzad16 modified the milestones: 3.5.0, 3.6.0 Jan 19, 2021
@gkorland gkorland requested a review from sazzad16 February 7, 2021 12:07
@sazzad16 sazzad16 changed the title Make getConnection abstract methods public Make getConnection abstract methods protected Feb 7, 2021
@sazzad16 sazzad16 merged commit 6b49fa4 into redis:master Feb 7, 2021
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