public final class EpollDomainSocketChannelConfig extends EpollChannelConfig implements DomainSocketChannelConfig
autoReadCleared, getEpollMode
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, 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
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
@Deprecated public EpollDomainSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
setMaxMessagesPerRead
in interface io.netty.channel.ChannelConfig
setMaxMessagesPerRead
in interface DomainSocketChannelConfig
setMaxMessagesPerRead
in class EpollChannelConfig
public EpollDomainSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis
in interface io.netty.channel.ChannelConfig
setConnectTimeoutMillis
in interface DomainSocketChannelConfig
setConnectTimeoutMillis
in class EpollChannelConfig
public EpollDomainSocketChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount
in interface io.netty.channel.ChannelConfig
setWriteSpinCount
in interface DomainSocketChannelConfig
setWriteSpinCount
in class EpollChannelConfig
public EpollDomainSocketChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator
in interface io.netty.channel.ChannelConfig
setRecvByteBufAllocator
in interface DomainSocketChannelConfig
setRecvByteBufAllocator
in class EpollChannelConfig
public EpollDomainSocketChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator
in interface io.netty.channel.ChannelConfig
setAllocator
in interface DomainSocketChannelConfig
setAllocator
in class EpollChannelConfig
public EpollDomainSocketChannelConfig setAutoClose(boolean autoClose)
setAutoClose
in interface io.netty.channel.ChannelConfig
setAutoClose
in interface DomainSocketChannelConfig
setAutoClose
in class io.netty.channel.DefaultChannelConfig
public EpollDomainSocketChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
setMessageSizeEstimator
in interface io.netty.channel.ChannelConfig
setMessageSizeEstimator
in interface DomainSocketChannelConfig
setMessageSizeEstimator
in class EpollChannelConfig
@Deprecated public EpollDomainSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferLowWaterMark
in interface DomainSocketChannelConfig
setWriteBufferLowWaterMark
in class EpollChannelConfig
@Deprecated public EpollDomainSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferHighWaterMark
in interface DomainSocketChannelConfig
setWriteBufferHighWaterMark
in class EpollChannelConfig
public EpollDomainSocketChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferWaterMark
in interface DomainSocketChannelConfig
setWriteBufferWaterMark
in class EpollChannelConfig
public EpollDomainSocketChannelConfig setAutoRead(boolean autoRead)
setAutoRead
in interface io.netty.channel.ChannelConfig
setAutoRead
in interface DomainSocketChannelConfig
setAutoRead
in class EpollChannelConfig
public EpollDomainSocketChannelConfig 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
public EpollDomainSocketChannelConfig setReadMode(DomainSocketReadMode mode)
DomainSocketChannelConfig
DomainSocketReadMode
for the channel. The default is
DomainSocketReadMode.BYTES
which means bytes will be read from the
Channel
and passed through the pipeline. If
DomainSocketReadMode.FILE_DESCRIPTORS
is used
FileDescriptor
s will be passed through the ChannelPipeline
.
This setting can be modified on the fly if needed.setReadMode
in interface DomainSocketChannelConfig
public DomainSocketReadMode getReadMode()
DomainSocketChannelConfig
DomainSocketReadMode
for the channel.getReadMode
in interface DomainSocketChannelConfig
Copyright © 2008–2017 The Netty Project. All rights reserved.