Package io.netty.channel.socket.nio
Class NioServerSocketChannel.NioServerSocketChannelConfig
- java.lang.Object
-
- io.netty.channel.DefaultChannelConfig
-
- io.netty.channel.socket.DefaultServerSocketChannelConfig
-
- io.netty.channel.socket.nio.NioServerSocketChannel.NioServerSocketChannelConfig
-
- All Implemented Interfaces:
ChannelConfig,ServerSocketChannelConfig
- Enclosing class:
- NioServerSocketChannel
private final class NioServerSocketChannel.NioServerSocketChannelConfig extends DefaultServerSocketChannelConfig
-
-
Field Summary
-
Fields inherited from class io.netty.channel.socket.DefaultServerSocketChannelConfig
javaSocket
-
Fields inherited from class io.netty.channel.DefaultChannelConfig
channel
-
-
Constructor Summary
Constructors Modifier Constructor Description privateNioServerSocketChannelConfig(NioServerSocketChannel channel, java.net.ServerSocket javaSocket)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidautoReadCleared()Is called onceDefaultChannelConfig.setAutoRead(boolean)is called withfalseandDefaultChannelConfig.isAutoRead()wastruebefore.<T> TgetOption(ChannelOption<T> option)Return the value of the givenChannelOptionjava.util.Map<ChannelOption<?>,java.lang.Object>getOptions()Return all setChannelOption's.private java.nio.channels.ServerSocketChanneljdkChannel()<T> booleansetOption(ChannelOption<T> option, T value)Sets a configuration property with the specified name and value.-
Methods inherited from class io.netty.channel.socket.DefaultServerSocketChannelConfig
getBacklog, getReceiveBufferSize, isReuseAddress, setAllocator, setAutoRead, setBacklog, setConnectTimeoutMillis, setMaxMessagesPerRead, setMessageSizeEstimator, setPerformancePreferences, setReceiveBufferSize, setRecvByteBufAllocator, setReuseAddress, setWriteBufferHighWaterMark, setWriteBufferLowWaterMark, setWriteBufferWaterMark, setWriteSpinCount
-
Methods inherited from class io.netty.channel.DefaultChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setOptions, validate
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.netty.channel.ChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setOptions
-
-
-
-
Constructor Detail
-
NioServerSocketChannelConfig
private NioServerSocketChannelConfig(NioServerSocketChannel channel, java.net.ServerSocket javaSocket)
-
-
Method Detail
-
autoReadCleared
protected void autoReadCleared()
Description copied from class:DefaultChannelConfigIs called onceDefaultChannelConfig.setAutoRead(boolean)is called withfalseandDefaultChannelConfig.isAutoRead()wastruebefore.- Overrides:
autoReadClearedin classDefaultChannelConfig
-
setOption
public <T> boolean setOption(ChannelOption<T> option, T value)
Description copied from interface:ChannelConfigSets a configuration property with the specified name and value. To override this method properly, you must call the super class:public boolean setOption(ChannelOption<T> option, T value) { if (super.setOption(option, value)) { return true; } if (option.equals(additionalOption)) { .... return true; } return false; }- Specified by:
setOptionin interfaceChannelConfig- Overrides:
setOptionin classDefaultServerSocketChannelConfig- Returns:
trueif and only if the property has been set
-
getOption
public <T> T getOption(ChannelOption<T> option)
Description copied from interface:ChannelConfigReturn the value of the givenChannelOption- Specified by:
getOptionin interfaceChannelConfig- Overrides:
getOptionin classDefaultServerSocketChannelConfig
-
getOptions
public java.util.Map<ChannelOption<?>,java.lang.Object> getOptions()
Description copied from interface:ChannelConfigReturn all setChannelOption's.- Specified by:
getOptionsin interfaceChannelConfig- Overrides:
getOptionsin classDefaultServerSocketChannelConfig
-
jdkChannel
private java.nio.channels.ServerSocketChannel jdkChannel()
-
-