Uses of Interface
io.netty.channel.ChannelConfig
-
Packages that use ChannelConfig Package Description io.netty.channel The core channel API which is asynchronous and event-driven abstraction of various transports such as a NIO Channel.io.netty.channel.embedded A virtualChannelthat helps wrapping a series of handlers to unit test the handlers or use them in non-I/O context.io.netty.channel.local A virtual transport that enables the communication between the two parties in the same virtual machine.io.netty.channel.socket Abstract TCP and UDP socket interfaces which extend the core channel API.io.netty.channel.socket.nio NIO-based socket channel API implementation - recommended for a large number of connections (>= 1000).io.netty.channel.socket.oio Old blocking I/O based socket channel API implementation - recommended for a small number of connections (< 1000). -
-
Uses of ChannelConfig in io.netty.channel
Classes in io.netty.channel that implement ChannelConfig Modifier and Type Class Description classDefaultChannelConfigThe defaultChannelConfigimplementation.Methods in io.netty.channel that return ChannelConfig Modifier and Type Method Description ChannelConfigChannel. config()Returns the configuration of this channel.ChannelConfigChannelConfig. setAllocator(io.netty.buffer.ByteBufAllocator allocator)Set theByteBufAllocatorwhich is used for the channel to allocate buffers.ChannelConfigDefaultChannelConfig. setAllocator(io.netty.buffer.ByteBufAllocator allocator)ChannelConfigChannelConfig. setAutoClose(boolean autoClose)Sets whether theChannelshould be closed automatically and immediately on write failure.ChannelConfigDefaultChannelConfig. setAutoClose(boolean autoClose)ChannelConfigChannelConfig. setAutoRead(boolean autoRead)Sets ifChannelHandlerContext.read()will be invoked automatically so that a user application doesn't need to call it at all.ChannelConfigDefaultChannelConfig. setAutoRead(boolean autoRead)ChannelConfigChannelConfig. setConnectTimeoutMillis(int connectTimeoutMillis)Sets the connect timeout of the channel in milliseconds.ChannelConfigDefaultChannelConfig. setConnectTimeoutMillis(int connectTimeoutMillis)ChannelConfigChannelConfig. setMaxMessagesPerRead(int maxMessagesPerRead)Deprecated.ChannelConfigDefaultChannelConfig. setMaxMessagesPerRead(int maxMessagesPerRead)Deprecated.ChannelConfigDefaultChannelConfig. setMaxMessagesPerWrite(int maxMessagesPerWrite)Set the maximum number of message to write per eventloop run.ChannelConfigChannelConfig. setMessageSizeEstimator(MessageSizeEstimator estimator)Set theMessageSizeEstimatorwhich is used for the channel to detect the size of a message.ChannelConfigDefaultChannelConfig. setMessageSizeEstimator(MessageSizeEstimator estimator)ChannelConfigChannelConfig. setRecvByteBufAllocator(RecvByteBufAllocator allocator)Set theRecvByteBufAllocatorwhich is used for the channel to allocate receive buffers.ChannelConfigDefaultChannelConfig. setRecvByteBufAllocator(RecvByteBufAllocator allocator)ChannelConfigChannelConfig. setWriteBufferHighWaterMark(int writeBufferHighWaterMark)Sets the high water mark of the write buffer.ChannelConfigDefaultChannelConfig. setWriteBufferHighWaterMark(int writeBufferHighWaterMark)ChannelConfigChannelConfig. setWriteBufferLowWaterMark(int writeBufferLowWaterMark)Sets the low water mark of the write buffer.ChannelConfigDefaultChannelConfig. setWriteBufferLowWaterMark(int writeBufferLowWaterMark)ChannelConfigChannelConfig. setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark)Set theWriteBufferWaterMarkwhich is used for setting the high and low water mark of the write buffer.ChannelConfigDefaultChannelConfig. setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark)ChannelConfigChannelConfig. setWriteSpinCount(int writeSpinCount)Sets the maximum loop count for a write operation untilWritableByteChannel.write(ByteBuffer)returns a non-zero value.ChannelConfigDefaultChannelConfig. setWriteSpinCount(int writeSpinCount)Methods in io.netty.channel with parameters of type ChannelConfig Modifier and Type Method Description voidDefaultMaxMessagesRecvByteBufAllocator.MaxMessageHandle. reset(ChannelConfig config)OnlygetMaxMessagesPerRead()is used.voidRecvByteBufAllocator.DelegatingHandle. reset(ChannelConfig config)voidRecvByteBufAllocator.Handle. reset(ChannelConfig config)Deprecated.Reset any counters that have accumulated and recommend how many messages/bytes should be read for the next read loop. -
Uses of ChannelConfig in io.netty.channel.embedded
Methods in io.netty.channel.embedded that return ChannelConfig Modifier and Type Method Description ChannelConfigEmbeddedChannel. config()Methods in io.netty.channel.embedded with parameters of type ChannelConfig Modifier and Type Method Description EmbeddedChannel.BuilderEmbeddedChannel.Builder. config(ChannelConfig config)TheChannelConfigwhich will be returned byEmbeddedChannel.config().Constructors in io.netty.channel.embedded with parameters of type ChannelConfig Constructor Description EmbeddedChannel(ChannelId channelId, boolean hasDisconnect, ChannelConfig config, ChannelHandler... handlers)Create a new instance with the channel ID set to the given ID and the pipeline initialized with the specified handlers. -
Uses of ChannelConfig in io.netty.channel.local
Methods in io.netty.channel.local that return ChannelConfig Modifier and Type Method Description ChannelConfigLocalChannel. config()ChannelConfigLocalServerChannel. config() -
Uses of ChannelConfig in io.netty.channel.socket
Subinterfaces of ChannelConfig in io.netty.channel.socket Modifier and Type Interface Description interfaceDatagramChannelConfigAChannelConfigfor aDatagramChannel.interfaceDuplexChannelConfigAChannelConfigfor aDuplexChannel.interfaceServerSocketChannelConfigAChannelConfigfor aServerSocketChannel.interfaceSocketChannelConfigAChannelConfigfor aSocketChannel.Classes in io.netty.channel.socket that implement ChannelConfig Modifier and Type Class Description classDefaultDatagramChannelConfigThe defaultDatagramChannelConfigimplementation.classDefaultServerSocketChannelConfigThe defaultServerSocketChannelConfigimplementation.classDefaultSocketChannelConfigThe defaultSocketChannelConfigimplementation. -
Uses of ChannelConfig in io.netty.channel.socket.nio
Methods in io.netty.channel.socket.nio that return ChannelConfig Modifier and Type Method Description ChannelConfigNioDomainSocketChannel. config()ChannelConfigNioServerDomainSocketChannel. config() -
Uses of ChannelConfig in io.netty.channel.socket.oio
Subinterfaces of ChannelConfig in io.netty.channel.socket.oio Modifier and Type Interface Description interfaceOioDatagramChannelConfigDeprecated.use NIO / EPOLL / KQUEUE transport.interfaceOioServerSocketChannelConfigDeprecated.use NIO / EPOLL / KQUEUE transport.interfaceOioSocketChannelConfigDeprecated.use NIO / EPOLL / KQUEUE transport.Classes in io.netty.channel.socket.oio that implement ChannelConfig Modifier and Type Class Description classDefaultOioServerSocketChannelConfigDeprecated.use NIO / EPOLL / KQUEUE transport.classDefaultOioSocketChannelConfigDeprecated.use NIO / EPOLL / KQUEUE transport.
-