Skip to content

ISSUE#3328 - Remove deprecated code from ISSUE#1314 #3351

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

a-TODO-rov
Copy link

Remove deprecated bufferUsageRatio methods

Removes deprecated bufferUsageRatio methods and related code from ClientOptions and ClusterClientOptions classes.

Changes

  • Removed bufferUsageRatio(int) builder method from ClientOptions.Builder
  • Removed getBufferUsageRatio() getter method from ClientOptions
  • Removed overridden bufferUsageRatio(int) method from ClusterClientOptions.Builder

These methods were deprecated in version 6.0 in favor of DecodeBufferPolicy (issue #1314) and are now being cleaned up.

Related Issues

@a-TODO-rov a-TODO-rov requested a review from Copilot July 8, 2025 11:35
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR cleans up deprecated bufferUsageRatio methods and related code in favor of the newer DecodeBufferPolicy.

  • Removed bufferUsageRatio(int) builder method from ClientOptions.Builder
  • Removed getBufferUsageRatio() getter method from ClientOptions
  • Removed overridden bufferUsageRatio(int) in ClusterClientOptions.Builder

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
src/main/java/io/lettuce/core/ClientOptions.java Deleted deprecated bufferUsageRatio builder and getter
src/main/java/io/lettuce/core/cluster/ClusterClientOptions.java Deleted overridden deprecated bufferUsageRatio builder

@a-TODO-rov a-TODO-rov requested a review from tishun July 8, 2025 11:36
@tishun tishun added this to the 7.0.0.RELEASE milestone Jul 11, 2025
@tishun tishun added the type: breaking Breaking change label Jul 11, 2025
Copy link
Collaborator

@tishun tishun left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the PR! ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: breaking Breaking change
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants