made chunk size a global shared parameter between the server and the cache backends

This commit is contained in:
woggioni committed 2025-03-06 22:08:19 +08:00
1 parent 8b639fc0b3
commit fc298de548
23 files changed
+59 -68

No files matched your search

@@ -8,6 +8,7 @@ import io.netty.channel.socket.SocketChannel;
public interface CacheHandlerFactory extends AsyncCloseable {
ChannelHandler newHandler(
Configuration configuration,
EventLoopGroup eventLoopGroup,
ChannelFactory<SocketChannel> socketChannelFactory,
ChannelFactory<DatagramChannel> datagramChannelFactory
@@ -39,6 +39,7 @@ public class Configuration {
Duration readIdleTimeout;
Duration writeIdleTimeout;
int maxRequestSize;
int chunkSize;
}
@Value