Package io.netty.channel.epoll
Class EpollDomainDatagramChannelConfig
- java.lang.Object
-
- io.netty.channel.DefaultChannelConfig
-
- io.netty.channel.epoll.EpollChannelConfig
-
- io.netty.channel.epoll.EpollDomainDatagramChannelConfig
-
- All Implemented Interfaces:
io.netty.channel.ChannelConfig,io.netty.channel.unix.DomainDatagramChannelConfig
public final class EpollDomainDatagramChannelConfig extends EpollChannelConfig implements io.netty.channel.unix.DomainDatagramChannelConfig
-
-
Method Summary
-
Methods inherited from class io.netty.channel.epoll.EpollChannelConfig
autoReadCleared, getEpollMode, getMaxBytesPerGatheringWrite, setMaxBytesPerGatheringWrite, setWriteBufferHighWaterMark, setWriteBufferLowWaterMark, socket
-
Methods inherited from class io.netty.channel.DefaultChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, 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, setOptions, setWriteBufferHighWaterMark, setWriteBufferLowWaterMark
-
-
-
-
Method Detail
-
getOptions
public Map<io.netty.channel.ChannelOption<?>,Object> getOptions()
- Specified by:
getOptionsin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionsin classEpollChannelConfig
-
getOption
public <T> T getOption(io.netty.channel.ChannelOption<T> option)
- Specified by:
getOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
getOptionin classEpollChannelConfig
-
setOption
public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value)- Specified by:
setOptionin interfaceio.netty.channel.ChannelConfig- Overrides:
setOptionin classEpollChannelConfig
-
setAllocator
public EpollDomainDatagramChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
- Specified by:
setAllocatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setAllocatorin interfaceio.netty.channel.unix.DomainDatagramChannelConfig- Overrides:
setAllocatorin classEpollChannelConfig
-
setAutoClose
public EpollDomainDatagramChannelConfig setAutoClose(boolean autoClose)
- Specified by:
setAutoClosein interfaceio.netty.channel.ChannelConfig- Specified by:
setAutoClosein interfaceio.netty.channel.unix.DomainDatagramChannelConfig- Overrides:
setAutoClosein classio.netty.channel.DefaultChannelConfig
-
setAutoRead
public EpollDomainDatagramChannelConfig setAutoRead(boolean autoRead)
- Specified by:
setAutoReadin interfaceio.netty.channel.ChannelConfig- Specified by:
setAutoReadin interfaceio.netty.channel.unix.DomainDatagramChannelConfig- Overrides:
setAutoReadin classEpollChannelConfig
-
setConnectTimeoutMillis
public EpollDomainDatagramChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
- Specified by:
setConnectTimeoutMillisin interfaceio.netty.channel.ChannelConfig- Specified by:
setConnectTimeoutMillisin interfaceio.netty.channel.unix.DomainDatagramChannelConfig- Overrides:
setConnectTimeoutMillisin classEpollChannelConfig
-
setEpollMode
public EpollDomainDatagramChannelConfig setEpollMode(EpollMode mode)
Description copied from class:EpollChannelConfigSet theEpollModeused. Default isEpollMode.EDGE_TRIGGERED. If you want to useDefaultChannelConfig.isAutoRead()falseorDefaultChannelConfig.getMaxMessagesPerRead()and have an accurate behaviour you should useEpollMode.LEVEL_TRIGGERED. Be aware this config setting can only be adjusted before the channel was registered.- Overrides:
setEpollModein classEpollChannelConfig
-
setMaxMessagesPerRead
@Deprecated public EpollDomainDatagramChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.ChannelConfig- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.unix.DomainDatagramChannelConfig- Overrides:
setMaxMessagesPerReadin classEpollChannelConfig
-
setMaxMessagesPerWrite
public EpollDomainDatagramChannelConfig setMaxMessagesPerWrite(int maxMessagesPerWrite)
- Overrides:
setMaxMessagesPerWritein classio.netty.channel.DefaultChannelConfig
-
setMessageSizeEstimator
public EpollDomainDatagramChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
- Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.unix.DomainDatagramChannelConfig- Overrides:
setMessageSizeEstimatorin classEpollChannelConfig
-
setRecvByteBufAllocator
public EpollDomainDatagramChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
- Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.unix.DomainDatagramChannelConfig- Overrides:
setRecvByteBufAllocatorin classEpollChannelConfig
-
setSendBufferSize
public EpollDomainDatagramChannelConfig setSendBufferSize(int sendBufferSize)
- Specified by:
setSendBufferSizein interfaceio.netty.channel.unix.DomainDatagramChannelConfig
-
getSendBufferSize
public int getSendBufferSize()
- Specified by:
getSendBufferSizein interfaceio.netty.channel.unix.DomainDatagramChannelConfig
-
setWriteBufferWaterMark
public EpollDomainDatagramChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
- Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.unix.DomainDatagramChannelConfig- Overrides:
setWriteBufferWaterMarkin classEpollChannelConfig
-
setWriteSpinCount
public EpollDomainDatagramChannelConfig setWriteSpinCount(int writeSpinCount)
- Specified by:
setWriteSpinCountin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteSpinCountin interfaceio.netty.channel.unix.DomainDatagramChannelConfig- Overrides:
setWriteSpinCountin classEpollChannelConfig
-
-