@@ -262,24 +262,6 @@ public Builder replayFilter(Predicate<RedisCommand<?, ?, ?>> replayFilter) {
262
262
return this ;
263
263
}
264
264
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
-
283
265
/**
284
266
* Set the policy to discard read bytes from the decoding aggregation buffer to reclaim memory.
285
267
*
@@ -569,20 +551,6 @@ public DecodeBufferPolicy getDecodeBufferPolicy() {
569
551
return decodeBufferPolicy ;
570
552
}
571
553
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
-
586
554
/**
587
555
* Behavior for command invocation when connections are in a disconnected state. Defaults to
588
556
* {@link DisconnectedBehavior#DEFAULT true}. See {@link #DEFAULT_DISCONNECTED_BEHAVIOR}.
0 commit comments