10000 Change the default AdaptiveRecvByteBufAllocator buffer size values' v… · netty/netty@8d387ff · GitHub
[go: up one dir, main page]

Skip to content

Commit 8d387ff

Browse files
authored
Change the default AdaptiveRecvByteBufAllocator buffer size values' visibility to public (#14758)
Motivation: Currently, the constants for default values of the buffer are package-private. Modification: Introduce the ability to reference and reuse the default values for the buffer size from other classes/projects. Result: Changing the three constants for the buffer default value to public visibility.
1 parent 1cfd3a6 commit 8d387ff

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

transport/src/main/java/io/netty/channel/AdaptiveRecvByteBufAllocator.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@
3434
*/
3535
public class AdaptiveRecvByteBufAllocator extends DefaultMaxMessagesRecvByteBufAllocator {
3636

37-
static final int DEFAULT_MINIMUM = 64;
37+
public static final int DEFAULT_MINIMUM = 64;
3838
// Use an initial value that is bigger than the common MTU of 1500
39-
static final int DEFAULT_INITIAL = 2048;
40-
static final int DEFAULT_MAXIMUM = 65536;
39+
public static final int DEFAULT_INITIAL = 2048;
40+
public static final int DEFAULT_MAXIMUM = 65536;
4141

4242
private static final int INDEX_INCREMENT = 4;
4343
private static final int INDEX_DECREMENT = 1;

0 commit comments

Comments
 (0)
0