Skip to content

Commit 49eddf4

Browse files
authored
ISSUE#3328 - Remove deprecated code from ISSUE#1314 (#3351)
1 parent 9eaaba9 commit 49eddf4

File tree

2 files changed

+0
-45
lines changed

2 files changed

+0
-45
lines changed

src/main/java/io/lettuce/core/ClientOptions.java

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -262,24 +262,6 @@ public Builder replayFilter(Predicate<RedisCommand<?, ?, ?>> replayFilter) {
262262
return this;
263263
}
264264

265-
/**
266-
* Buffer usage ratio for {@link io.lettuce.core.protocol.CommandHandler}. This ratio controls how often bytes are
267-
* discarded during decoding. In particular, when buffer usage reaches {@code bufferUsageRatio / bufferUsageRatio + 1}.
268-
* E.g. setting {@code bufferUsageRatio} to {@literal 3}, will discard read bytes once the buffer usage reaches 75
269-
* percent. See {@link #DEFAULT_BUFFER_USAGE_RATIO}.
270-
*
271-
* @param bufferUsageRatio the buffer usage ratio. Must be between {@code 0} and {@code 2^31-1}, typically a value
272-
* between 1 and 10 representing 50% to 90%.
273-
* @return {@code this}
274-
* @since 5.2
275-
* @deprecated since 6.0 in favor of {@link DecodeBufferPolicy}.
276-
*/
277-
@Deprecated
278-
public Builder bufferUsageRatio(int bufferUsageRatio) {
279-
this.decodeBufferPolicy = DecodeBufferPolicies.ratio(bufferUsageRatio);
280-
return this;
281-
}
282-
283265
/**
284266
* Set the policy to discard read bytes from the decoding aggregation buffer to reclaim memory.
285267
*
@@ -569,20 +551,6 @@ public DecodeBufferPolicy getDecodeBufferPolicy() {
569551
return decodeBufferPolicy;
570552
}
571553

572-
/**
573-
* Buffer usage ratio for {@link io.lettuce.core.protocol.CommandHandler}. This ratio controls how often bytes are discarded
574-
* during decoding. In particular, when buffer usage reaches {@code bufferUsageRatio / bufferUsageRatio + 1}. E.g. setting
575-
* {@code bufferUsageRatio} to {@literal 3}, will discard read bytes once the buffer usage reaches 75 percent.
576-
*
577-
* @return zero.
578-
* @since 5.2
579-
* @deprecated since 6.0 in favor of {@link DecodeBufferPolicy}.
580-
*/
581-
@Deprecated
582-
public int getBufferUsageRatio() {
583-
return 0;
584-
}
585-
586554
/**
587555
* Behavior for command invocation when connections are in a disconnected state. Defaults to
588556
* {@link DisconnectedBehavior#DEFAULT true}. See {@link #DEFAULT_DISCONNECTED_BEHAVIOR}.

src/main/java/io/lettuce/core/cluster/ClusterClientOptions.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -178,19 +178,6 @@ public Builder autoReconnect(boolean autoReconnect) {
178178
return this;
179179
}
180180

181-
/**
182-
* @param bufferUsageRatio the buffer usage ratio. Must be between {@code 0} and {@code 2^31-1}, typically a value
183-
* between 1 and 10 representing 50% to 90%.
184-
* @return {@code this}
185-
* @deprecated since 6.0 in favor of {@link DecodeBufferPolicy}.
186-
*/
187-
@Override
188-
@Deprecated
189-
public Builder bufferUsageRatio(int bufferUsageRatio) {
190-
super.bufferUsageRatio(bufferUsageRatio);
191-
return this;
192-
}
193-
194181
@Override
195182
public Builder decodeBufferPolicy(DecodeBufferPolicy decodeBufferPolicy) {
196183
super.decodeBufferPolicy(decodeBufferPolicy);

0 commit comments

Comments
 (0)