@UnstableApi public final class EpollDomainDatagramChannelConfig extends EpollChannelConfig implements io.netty.channel.unix.DomainDatagramChannelConfig
autoReadCleared, getEpollMode, setWriteBufferHighWaterMark, setWriteBufferLowWaterMark
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions, validate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions, setWriteBufferHighWaterMark, setWriteBufferLowWaterMark
public Map<io.netty.channel.ChannelOption<?>,Object> getOptions()
getOptions
in interface io.netty.channel.ChannelConfig
getOptions
in class EpollChannelConfig
public <T> T getOption(io.netty.channel.ChannelOption<T> option)
getOption
in interface io.netty.channel.ChannelConfig
getOption
in class EpollChannelConfig
public <T> boolean setOption(io.netty.channel.ChannelOption<T> option, T value)
setOption
in interface io.netty.channel.ChannelConfig
setOption
in class EpollChannelConfig
public EpollDomainDatagramChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator
in interface io.netty.channel.ChannelConfig
setAllocator
in interface io.netty.channel.unix.DomainDatagramChannelConfig
setAllocator
in class EpollChannelConfig
public EpollDomainDatagramChannelConfig setAutoClose(boolean autoClose)
setAutoClose
in interface io.netty.channel.ChannelConfig
setAutoClose
in interface io.netty.channel.unix.DomainDatagramChannelConfig
setAutoClose
in class io.netty.channel.DefaultChannelConfig
public EpollDomainDatagramChannelConfig setAutoRead(boolean autoRead)
setAutoRead
in interface io.netty.channel.ChannelConfig
setAutoRead
in interface io.netty.channel.unix.DomainDatagramChannelConfig
setAutoRead
in class EpollChannelConfig
public EpollDomainDatagramChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis
in interface io.netty.channel.ChannelConfig
setConnectTimeoutMillis
in interface io.netty.channel.unix.DomainDatagramChannelConfig
setConnectTimeoutMillis
in class EpollChannelConfig
public EpollDomainDatagramChannelConfig setEpollMode(EpollMode mode)
EpollChannelConfig
EpollMode
used. Default is
EpollMode.EDGE_TRIGGERED
. If you want to use DefaultChannelConfig.isAutoRead()
false
or
DefaultChannelConfig.getMaxMessagesPerRead()
and have an accurate behaviour you should use
EpollMode.LEVEL_TRIGGERED
.
Be aware this config setting can only be adjusted before the channel was registered.setEpollMode
in class EpollChannelConfig
@Deprecated public EpollDomainDatagramChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead
in interface io.netty.channel.ChannelConfig
setMaxMessagesPerRead
in interface io.netty.channel.unix.DomainDatagramChannelConfig
setMaxMessagesPerRead
in class EpollChannelConfig
public EpollDomainDatagramChannelConfig setMaxMessagesPerWrite(int maxMessagesPerWrite)
setMaxMessagesPerWrite
in class io.netty.channel.DefaultChannelConfig
public EpollDomainDatagramChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator
in interface io.netty.channel.ChannelConfig
setMessageSizeEstimator
in interface io.netty.channel.unix.DomainDatagramChannelConfig
setMessageSizeEstimator
in class EpollChannelConfig
public EpollDomainDatagramChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator
in interface io.netty.channel.ChannelConfig
setRecvByteBufAllocator
in interface io.netty.channel.unix.DomainDatagramChannelConfig
setRecvByteBufAllocator
in class EpollChannelConfig
public EpollDomainDatagramChannelConfig setSendBufferSize(int sendBufferSize)
setSendBufferSize
in interface io.netty.channel.unix.DomainDatagramChannelConfig
public int getSendBufferSize()
getSendBufferSize
in interface io.netty.channel.unix.DomainDatagramChannelConfig
public EpollDomainDatagramChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferWaterMark
in interface io.netty.channel.unix.DomainDatagramChannelConfig
setWriteBufferWaterMark
in class EpollChannelConfig
public EpollDomainDatagramChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount
in interface io.netty.channel.ChannelConfig
setWriteSpinCount
in interface io.netty.channel.unix.DomainDatagramChannelConfig
setWriteSpinCount
in class EpollChannelConfig
Copyright © 2008–2021 The Netty Project. All rights reserved.