Uses of Class
io.netty.channel.ChannelOption
Packages that use ChannelOption
Package
Description
The helper classes with fluent API which enable an easy implementation of
typical client side and server side channel initialization.
The core channel API which is asynchronous and event-driven abstraction of
various transports such as a
NIO Channel.
Optimized transport for linux which uses EPOLL Edge-Triggered Mode
for maximal performance.
BSD specific transport.
A serial and parallel port communication transport based on RXTX.
Abstract SCTP socket interfaces which extend the core channel API.
Abstract TCP and UDP socket interfaces which extend the core channel API.
NIO-based socket channel
API implementation - recommended for a large number of connections (>= 1000).
Old blocking I/O based socket channel API implementation - recommended for
a small number of connections (< 1000).
UDT Transport.
Unix specific transport.
Handlers for sending and receiving HTTP/2 frames.
-
Uses of ChannelOption in io.netty.bootstrap
Methods in io.netty.bootstrap that return types with arguments of type ChannelOptionModifier and TypeMethodDescriptionMap<ChannelOption<?>, Object> ServerBootstrapConfig.childOptions()Returns a copy of the configured options which will be used for the child channels.final Map<ChannelOption<?>, Object> AbstractBootstrapConfig.options()Returns a copy of the configured options.Methods in io.netty.bootstrap with parameters of type ChannelOptionModifier and TypeMethodDescription<T> ServerBootstrapServerBootstrap.childOption(ChannelOption<T> childOption, T value) Allow to specify aChannelOptionwhich is used for theChannelinstances once they get created (after the acceptor accepted theChannel).<T> BAbstractBootstrap.option(ChannelOption<T> option, T value) Allow to specify aChannelOptionwhich is used for theChannelinstances once they got created. -
Uses of ChannelOption in io.netty.channel
Subclasses with type arguments of type ChannelOption in io.netty.channelModifier and TypeClassDescriptionclassAChannelOptionallows to configure aChannelConfigin a type-safe way.Fields in io.netty.channel declared as ChannelOptionModifier and TypeFieldDescriptionstatic final ChannelOption<ByteBufAllocator> ChannelOption.ALLOCATORstatic final ChannelOption<Boolean> ChannelOption.ALLOW_HALF_CLOSUREstatic final ChannelOption<Boolean> ChannelOption.AUTO_CLOSEIftruethen theChannelis closed automatically and immediately on write failure.static final ChannelOption<Boolean> ChannelOption.AUTO_READstatic final ChannelOption<Integer> ChannelOption.CONNECT_TIMEOUT_MILLISstatic final ChannelOption<Boolean> ChannelOption.DATAGRAM_CHANNEL_ACTIVE_ON_REGISTRATIONDeprecated.static final ChannelOption<InetAddress> ChannelOption.IP_MULTICAST_ADDRstatic final ChannelOption<NetworkInterface> ChannelOption.IP_MULTICAST_IFstatic final ChannelOption<Boolean> ChannelOption.IP_MULTICAST_LOOP_DISABLEDstatic final ChannelOption<Integer> ChannelOption.IP_MULTICAST_TTLstatic final ChannelOption<Integer> ChannelOption.IP_TOSstatic final ChannelOption<Integer> ChannelOption.MAX_MESSAGES_PER_READDeprecated.static final ChannelOption<Integer> ChannelOption.MAX_MESSAGES_PER_WRITEstatic final ChannelOption<MessageSizeEstimator> ChannelOption.MESSAGE_SIZE_ESTIMATORstatic final ChannelOption<RecvByteBufAllocator> ChannelOption.RCVBUF_ALLOCATORstatic final ChannelOption<Boolean> ChannelOption.SINGLE_EVENTEXECUTOR_PER_GROUPstatic final ChannelOption<Integer> ChannelOption.SO_BACKLOGstatic final ChannelOption<Boolean> ChannelOption.SO_BROADCASTstatic final ChannelOption<Boolean> ChannelOption.SO_KEEPALIVEstatic final ChannelOption<Integer> ChannelOption.SO_LINGERstatic final ChannelOption<Integer> ChannelOption.SO_RCVBUFstatic final ChannelOption<Boolean> ChannelOption.SO_REUSEADDRstatic final ChannelOption<Integer> ChannelOption.SO_SNDBUFstatic final ChannelOption<Integer> ChannelOption.SO_TIMEOUTstatic final ChannelOption<Integer> ChannelOption.TCP_FASTOPENServer-side TCP FastOpen.static final ChannelOption<Boolean> ChannelOption.TCP_FASTOPEN_CONNECTClient-side TCP FastOpen.static final ChannelOption<Boolean> ChannelOption.TCP_NODELAYstatic final ChannelOption<Integer> ChannelOption.WRITE_BUFFER_HIGH_WATER_MARKDeprecated.static final ChannelOption<Integer> ChannelOption.WRITE_BUFFER_LOW_WATER_MARKDeprecated.static final ChannelOption<WriteBufferWaterMark> ChannelOption.WRITE_BUFFER_WATER_MARKstatic final ChannelOption<Integer> ChannelOption.WRITE_SPIN_COUNTMethods in io.netty.channel that return ChannelOptionModifier and TypeMethodDescriptionstatic <T> ChannelOption<T> ChannelOption.newInstance(String name) Deprecated.static <T> ChannelOption<T> static <T> ChannelOption<T> Returns theChannelOptionof the specified name.Methods in io.netty.channel that return types with arguments of type ChannelOptionModifier and TypeMethodDescriptionMap<ChannelOption<?>, Object> ChannelConfig.getOptions()Return all setChannelOption's.Map<ChannelOption<?>, Object> DefaultChannelConfig.getOptions()protected Map<ChannelOption<?>, Object> DefaultChannelConfig.getOptions(Map<ChannelOption<?>, Object> result, ChannelOption<?>... options) Methods in io.netty.channel with parameters of type ChannelOptionModifier and TypeMethodDescription<T> TChannelConfig.getOption(ChannelOption<T> option) Return the value of the givenChannelOption<T> TDefaultChannelConfig.getOption(ChannelOption<T> option) protected Map<ChannelOption<?>, Object> DefaultChannelConfig.getOptions(Map<ChannelOption<?>, Object> result, ChannelOption<?>... options) <T> booleanChannelConfig.setOption(ChannelOption<T> option, T value) Sets a configuration property with the specified name and value.<T> booleanDefaultChannelConfig.setOption(ChannelOption<T> option, T value) protected <T> voidDefaultChannelConfig.validate(ChannelOption<T> option, T value) Method parameters in io.netty.channel with type arguments of type ChannelOptionModifier and TypeMethodDescriptionprotected Map<ChannelOption<?>, Object> DefaultChannelConfig.getOptions(Map<ChannelOption<?>, Object> result, ChannelOption<?>... options) booleanChannelConfig.setOptions(Map<ChannelOption<?>, ?> options) Sets the configuration properties from the specifiedMap.booleanDefaultChannelConfig.setOptions(Map<ChannelOption<?>, ?> options) -
Uses of ChannelOption in io.netty.channel.epoll
Subclasses of ChannelOption in io.netty.channel.epollFields in io.netty.channel.epoll declared as ChannelOptionModifier and TypeFieldDescriptionstatic final ChannelOption<EpollMode> EpollChannelOption.EPOLL_MODEstatic final ChannelOption<Boolean> EpollChannelOption.IP_BIND_ADDRESS_NO_PORTstatic final ChannelOption<Boolean> EpollChannelOption.IP_FREEBINDstatic final ChannelOption<Boolean> EpollChannelOption.IP_RECVORIGDSTADDRstatic final ChannelOption<Boolean> EpollChannelOption.IP_TRANSPARENTstatic final ChannelOption<Integer> EpollChannelOption.MAX_DATAGRAM_PAYLOAD_SIZEstatic final ChannelOption<Integer> EpollChannelOption.SO_BUSY_POLLstatic final ChannelOption<Boolean> EpollChannelOption.TCP_CORKstatic final ChannelOption<Integer> EpollChannelOption.TCP_DEFER_ACCEPTstatic final ChannelOption<Integer> EpollChannelOption.TCP_FASTOPENDeprecated.UseChannelOption.TCP_FASTOPENinstead.static final ChannelOption<Boolean> EpollChannelOption.TCP_FASTOPEN_CONNECTDeprecated.UseChannelOption.TCP_FASTOPEN_CONNECTinstead.static final ChannelOption<Integer> EpollChannelOption.TCP_KEEPCNTstatic final ChannelOption<Integer> EpollChannelOption.TCP_KEEPIDLEstatic final ChannelOption<Integer> EpollChannelOption.TCP_KEEPINTVLstatic final ChannelOption<Map<InetAddress, byte[]>> EpollChannelOption.TCP_MD5SIGstatic final ChannelOption<Long> EpollChannelOption.TCP_NOTSENT_LOWATstatic final ChannelOption<Boolean> EpollChannelOption.TCP_QUICKACKstatic final ChannelOption<Integer> EpollChannelOption.TCP_USER_TIMEOUTstatic final ChannelOption<Boolean> EpollChannelOption.UDP_GROMethods in io.netty.channel.epoll that return types with arguments of type ChannelOptionModifier and TypeMethodDescriptionMap<ChannelOption<?>, Object> EpollChannelConfig.getOptions()Map<ChannelOption<?>, Object> EpollDatagramChannelConfig.getOptions()Map<ChannelOption<?>, Object> EpollDomainDatagramChannelConfig.getOptions()Map<ChannelOption<?>, Object> EpollDomainSocketChannelConfig.getOptions()Map<ChannelOption<?>, Object> EpollServerChannelConfig.getOptions()Map<ChannelOption<?>, Object> EpollServerSocketChannelConfig.getOptions()Map<ChannelOption<?>, Object> EpollSocketChannelConfig.getOptions()Methods in io.netty.channel.epoll with parameters of type ChannelOptionModifier and TypeMethodDescription<T> TEpollChannelConfig.getOption(ChannelOption<T> option) <T> TEpollDatagramChannelConfig.getOption(ChannelOption<T> option) <T> TEpollDomainDatagramChannelConfig.getOption(ChannelOption<T> option) <T> TEpollDomainSocketChannelConfig.getOption(ChannelOption<T> option) <T> TEpollServerChannelConfig.getOption(ChannelOption<T> option) <T> TEpollServerSocketChannelConfig.getOption(ChannelOption<T> option) <T> TEpollSocketChannelConfig.getOption(ChannelOption<T> option) <T> booleanEpollChannelConfig.setOption(ChannelOption<T> option, T value) <T> booleanEpollDatagramChannelConfig.setOption(ChannelOption<T> option, T value) <T> booleanEpollDomainDatagramChannelConfig.setOption(ChannelOption<T> option, T value) <T> booleanEpollDomainSocketChannelConfig.setOption(ChannelOption<T> option, T value) <T> booleanEpollServerChannelConfig.setOption(ChannelOption<T> option, T value) <T> booleanEpollServerSocketChannelConfig.setOption(ChannelOption<T> option, T value) <T> booleanEpollSocketChannelConfig.setOption(ChannelOption<T> option, T value) -
Uses of ChannelOption in io.netty.channel.kqueue
Subclasses of ChannelOption in io.netty.channel.kqueueFields in io.netty.channel.kqueue declared as ChannelOptionModifier and TypeFieldDescriptionstatic final ChannelOption<Boolean> KQueueChannelOption.RCV_ALLOC_TRANSPORT_PROVIDES_GUESSIf this istruethen theRecvByteBufAllocator.Handle.guess()will be overridden to always attempt to read as many bytes as kqueue says are available.static final ChannelOption<AcceptFilter> KQueueChannelOption.SO_ACCEPTFILTERstatic final ChannelOption<Integer> KQueueChannelOption.SO_SNDLOWATstatic final ChannelOption<Boolean> KQueueChannelOption.TCP_NOPUSHMethods in io.netty.channel.kqueue that return types with arguments of type ChannelOptionModifier and TypeMethodDescriptionMap<ChannelOption<?>, Object> KQueueChannelConfig.getOptions()Map<ChannelOption<?>, Object> KQueueDatagramChannelConfig.getOptions()Map<ChannelOption<?>, Object> KQueueDomainDatagramChannelConfig.getOptions()Map<ChannelOption<?>, Object> KQueueDomainSocketChannelConfig.getOptions()Map<ChannelOption<?>, Object> KQueueServerChannelConfig.getOptions()Map<ChannelOption<?>, Object> KQueueServerSocketChannelConfig.getOptions()Map<ChannelOption<?>, Object> KQueueSocketChannelConfig.getOptions()Methods in io.netty.channel.kqueue with parameters of type ChannelOptionModifier and TypeMethodDescription<T> TKQueueChannelConfig.getOption(ChannelOption<T> option) <T> TKQueueDatagramChannelConfig.getOption(ChannelOption<T> option) <T> TKQueueDomainDatagramChannelConfig.getOption(ChannelOption<T> option) <T> TKQueueDomainSocketChannelConfig.getOption(ChannelOption<T> option) <T> TKQueueServerChannelConfig.getOption(ChannelOption<T> option) <T> TKQueueServerSocketChannelConfig.getOption(ChannelOption<T> option) <T> TKQueueSocketChannelConfig.getOption(ChannelOption<T> option) <T> booleanKQueueChannelConfig.setOption(ChannelOption<T> option, T value) <T> booleanKQueueDatagramChannelConfig.setOption(ChannelOption<T> option, T value) <T> booleanKQueueDomainDatagramChannelConfig.setOption(ChannelOption<T> option, T value) <T> booleanKQueueDomainSocketChannelConfig.setOption(ChannelOption<T> option, T value) <T> booleanKQueueServerChannelConfig.setOption(ChannelOption<T> option, T value) <T> booleanKQueueServerSocketChannelConfig.setOption(ChannelOption<T> option, T value) <T> booleanKQueueSocketChannelConfig.setOption(ChannelOption<T> option, T value) -
Uses of ChannelOption in io.netty.channel.rxtx
Subclasses of ChannelOption in io.netty.channel.rxtxModifier and TypeClassDescriptionfinal classDeprecated.this transport will be removed in the next major version.Fields in io.netty.channel.rxtx declared as ChannelOptionModifier and TypeFieldDescriptionstatic final ChannelOption<Integer> RxtxChannelOption.BAUD_RATEDeprecated.static final ChannelOption<RxtxChannelConfig.Databits> RxtxChannelOption.DATA_BITSDeprecated.static final ChannelOption<Boolean> RxtxChannelOption.DTRDeprecated.static final ChannelOption<RxtxChannelConfig.Paritybit> RxtxChannelOption.PARITY_BITDeprecated.static final ChannelOption<Integer> RxtxChannelOption.READ_TIMEOUTDeprecated.static final ChannelOption<Boolean> RxtxChannelOption.RTSDeprecated.static final ChannelOption<RxtxChannelConfig.Stopbits> RxtxChannelOption.STOP_BITSDeprecated.static final ChannelOption<Integer> RxtxChannelOption.WAIT_TIMEDeprecated. -
Uses of ChannelOption in io.netty.channel.sctp
Subclasses of ChannelOption in io.netty.channel.sctpModifier and TypeClassDescriptionfinal classOption for configuring the SCTP transportFields in io.netty.channel.sctp declared as ChannelOptionModifier and TypeFieldDescriptionstatic final ChannelOption<Boolean> SctpChannelOption.SCTP_DISABLE_FRAGMENTSstatic final ChannelOption<Boolean> SctpChannelOption.SCTP_EXPLICIT_COMPLETEstatic final ChannelOption<Integer> SctpChannelOption.SCTP_FRAGMENT_INTERLEAVEstatic final ChannelOption<com.sun.nio.sctp.SctpStandardSocketOptions.InitMaxStreams> SctpChannelOption.SCTP_INIT_MAXSTREAMSstatic final ChannelOption<Boolean> SctpChannelOption.SCTP_NODELAYstatic final ChannelOption<SocketAddress> SctpChannelOption.SCTP_PRIMARY_ADDRstatic final ChannelOption<SocketAddress> SctpChannelOption.SCTP_SET_PEER_PRIMARY_ADDRMethods in io.netty.channel.sctp that return types with arguments of type ChannelOptionModifier and TypeMethodDescriptionMap<ChannelOption<?>, Object> DefaultSctpChannelConfig.getOptions()Map<ChannelOption<?>, Object> DefaultSctpServerChannelConfig.getOptions()Methods in io.netty.channel.sctp with parameters of type ChannelOptionModifier and TypeMethodDescription<T> TDefaultSctpChannelConfig.getOption(ChannelOption<T> option) <T> TDefaultSctpServerChannelConfig.getOption(ChannelOption<T> option) <T> booleanDefaultSctpChannelConfig.setOption(ChannelOption<T> option, T value) <T> booleanDefaultSctpServerChannelConfig.setOption(ChannelOption<T> option, T value) -
Uses of ChannelOption in io.netty.channel.socket
Methods in io.netty.channel.socket that return types with arguments of type ChannelOptionModifier and TypeMethodDescriptionMap<ChannelOption<?>, Object> DefaultDatagramChannelConfig.getOptions()Map<ChannelOption<?>, Object> DefaultServerSocketChannelConfig.getOptions()Map<ChannelOption<?>, Object> DefaultSocketChannelConfig.getOptions()Methods in io.netty.channel.socket with parameters of type ChannelOptionModifier and TypeMethodDescription<T> TDefaultDatagramChannelConfig.getOption(ChannelOption<T> option) <T> TDefaultServerSocketChannelConfig.getOption(ChannelOption<T> option) <T> TDefaultSocketChannelConfig.getOption(ChannelOption<T> option) <T> booleanDefaultDatagramChannelConfig.setOption(ChannelOption<T> option, T value) <T> booleanDefaultServerSocketChannelConfig.setOption(ChannelOption<T> option, T value) <T> booleanDefaultSocketChannelConfig.setOption(ChannelOption<T> option, T value) -
Uses of ChannelOption in io.netty.channel.socket.nio
Subclasses of ChannelOption in io.netty.channel.socket.nioModifier and TypeClassDescriptionfinal classProvidesChannelOptionover a givenSocketOptionwhich is then passed through the underlyingNetworkChannel.Methods in io.netty.channel.socket.nio that return ChannelOptionModifier and TypeMethodDescriptionstatic <T> ChannelOption<T> NioChannelOption.of(SocketOption<T> option) Returns aChannelOptionfor the givenSocketOption. -
Uses of ChannelOption in io.netty.channel.socket.oio
Methods in io.netty.channel.socket.oio that return types with arguments of type ChannelOptionModifier and TypeMethodDescriptionMap<ChannelOption<?>, Object> DefaultOioServerSocketChannelConfig.getOptions()Deprecated.Map<ChannelOption<?>, Object> DefaultOioSocketChannelConfig.getOptions()Deprecated.Methods in io.netty.channel.socket.oio with parameters of type ChannelOptionModifier and TypeMethodDescription<T> TDefaultOioServerSocketChannelConfig.getOption(ChannelOption<T> option) Deprecated.<T> TDefaultOioSocketChannelConfig.getOption(ChannelOption<T> option) Deprecated.<T> booleanDefaultOioServerSocketChannelConfig.setOption(ChannelOption<T> option, T value) Deprecated.<T> booleanDefaultOioSocketChannelConfig.setOption(ChannelOption<T> option, T value) Deprecated. -
Uses of ChannelOption in io.netty.channel.udt
Subclasses of ChannelOption in io.netty.channel.udtModifier and TypeClassDescriptionfinal classDeprecated.The UDT transport is no longer maintained and will be removed.Fields in io.netty.channel.udt declared as ChannelOptionModifier and TypeFieldDescriptionstatic final ChannelOption<Integer> UdtChannelOption.PROTOCOL_RECEIVE_BUFFER_SIZEDeprecated.SeeOptionUDT.Protocol_Receive_Buffer_Size.static final ChannelOption<Integer> UdtChannelOption.PROTOCOL_SEND_BUFFER_SIZEDeprecated.SeeOptionUDT.Protocol_Send_Buffer_Size.static final ChannelOption<Integer> UdtChannelOption.SYSTEM_RECEIVE_BUFFER_SIZEDeprecated.SeeOptionUDT.System_Receive_Buffer_Size.static final ChannelOption<Integer> UdtChannelOption.SYSTEM_SEND_BUFFER_SIZEDeprecated.SeeOptionUDT.System_Send_Buffer_Size.Methods in io.netty.channel.udt that return types with arguments of type ChannelOptionModifier and TypeMethodDescriptionMap<ChannelOption<?>, Object> DefaultUdtChannelConfig.getOptions()Deprecated.Map<ChannelOption<?>, Object> DefaultUdtServerChannelConfig.getOptions()Deprecated.Methods in io.netty.channel.udt with parameters of type ChannelOptionModifier and TypeMethodDescription<T> TDefaultUdtChannelConfig.getOption(ChannelOption<T> option) Deprecated.<T> TDefaultUdtServerChannelConfig.getOption(ChannelOption<T> option) Deprecated.<T> booleanDefaultUdtChannelConfig.setOption(ChannelOption<T> option, T value) Deprecated.<T> booleanDefaultUdtServerChannelConfig.setOption(ChannelOption<T> option, T value) Deprecated. -
Uses of ChannelOption in io.netty.channel.unix
Subclasses of ChannelOption in io.netty.channel.unixModifier and TypeClassDescriptionclassA generic socket option.final classfinal classclassFields in io.netty.channel.unix declared as ChannelOptionModifier and TypeFieldDescriptionstatic final ChannelOption<DomainSocketReadMode> UnixChannelOption.DOMAIN_SOCKET_READ_MODEstatic final ChannelOption<Boolean> UnixChannelOption.SO_REUSEPORT -
Uses of ChannelOption in io.netty.handler.codec.http2
Subclasses of ChannelOption in io.netty.handler.codec.http2Modifier and TypeClassDescriptionfinal classChannelOptions that are specific toHttp2StreamChannels.Fields in io.netty.handler.codec.http2 declared as ChannelOptionModifier and TypeFieldDescriptionstatic final ChannelOption<Boolean> Http2StreamChannelOption.AUTO_STREAM_FLOW_CONTROLWhen set totrueHttp2WindowUpdateFrames will be automatically be generated and written forHttp2StreamChannels as soon as frames are passed to the user viaChannelPipeline.fireChannelRead(Object).Methods in io.netty.handler.codec.http2 with parameters of type ChannelOptionModifier and TypeMethodDescriptionHttp2StreamChannelBootstrap.option(ChannelOption<T> option, T value) Allow to specify aChannelOptionwhich is used for theHttp2StreamChannelinstances once they got created.
MaxMessagesRecvByteBufAllocatorandMaxMessagesRecvByteBufAllocator.maxMessagesPerRead(int).