public final class EpollDomainSocketChannelConfig extends EpollChannelConfig implements io.netty.channel.unix.DomainSocketChannelConfig
Modifier and Type | Method and Description |
---|---|
<T> T |
getOption(io.netty.channel.ChannelOption<T> option) |
Map<io.netty.channel.ChannelOption<?>,Object> |
getOptions() |
io.netty.channel.unix.DomainSocketReadMode |
getReadMode() |
EpollDomainSocketChannelConfig |
setAllocator(io.netty.buffer.ByteBufAllocator allocator) |
EpollDomainSocketChannelConfig |
setAutoClose(boolean autoClose) |
EpollDomainSocketChannelConfig |
setAutoRead(boolean autoRead) |
EpollDomainSocketChannelConfig |
setConnectTimeoutMillis(int connectTimeoutMillis) |
EpollDomainSocketChannelConfig |
setEpollMode(EpollMode mode)
Set the
EpollMode used. |
EpollDomainSocketChannelConfig |
setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.
|
EpollDomainSocketChannelConfig |
setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator) |
<T> boolean |
setOption(io.netty.channel.ChannelOption<T> option,
T value) |
EpollDomainSocketChannelConfig |
setReadMode(io.netty.channel.unix.DomainSocketReadMode mode) |
EpollDomainSocketChannelConfig |
setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator) |
EpollDomainSocketChannelConfig |
setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Deprecated.
|
EpollDomainSocketChannelConfig |
setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Deprecated.
|
EpollDomainSocketChannelConfig |
setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark) |
EpollDomainSocketChannelConfig |
setWriteSpinCount(int writeSpinCount) |
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 io.netty.channel.unix.DomainSocketChannelConfig
setMaxMessagesPerRead
in class EpollChannelConfig
public EpollDomainSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
setConnectTimeoutMillis
in interface io.netty.channel.ChannelConfig
setConnectTimeoutMillis
in interface io.netty.channel.unix.DomainSocketChannelConfig
setConnectTimeoutMillis
in class EpollChannelConfig
public EpollDomainSocketChannelConfig setWriteSpinCount(int writeSpinCount)
setWriteSpinCount
in interface io.netty.channel.ChannelConfig
setWriteSpinCount
in interface io.netty.channel.unix.DomainSocketChannelConfig
setWriteSpinCount
in class EpollChannelConfig
public EpollDomainSocketChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
setRecvByteBufAllocator
in interface io.netty.channel.ChannelConfig
setRecvByteBufAllocator
in interface io.netty.channel.unix.DomainSocketChannelConfig
setRecvByteBufAllocator
in class EpollChannelConfig
public EpollDomainSocketChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
setAllocator
in interface io.netty.channel.ChannelConfig
setAllocator
in interface io.netty.channel.unix.DomainSocketChannelConfig
setAllocator
in class EpollChannelConfig
public EpollDomainSocketChannelConfig setAutoClose(boolean autoClose)
setAutoClose
in interface io.netty.channel.ChannelConfig
setAutoClose
in interface io.netty.channel.unix.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 io.netty.channel.unix.DomainSocketChannelConfig
setMessageSizeEstimator
in class EpollChannelConfig
@Deprecated public EpollDomainSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
setWriteBufferLowWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferLowWaterMark
in interface io.netty.channel.unix.DomainSocketChannelConfig
setWriteBufferLowWaterMark
in class EpollChannelConfig
@Deprecated public EpollDomainSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
setWriteBufferHighWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferHighWaterMark
in interface io.netty.channel.unix.DomainSocketChannelConfig
setWriteBufferHighWaterMark
in class EpollChannelConfig
public EpollDomainSocketChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
setWriteBufferWaterMark
in interface io.netty.channel.ChannelConfig
setWriteBufferWaterMark
in interface io.netty.channel.unix.DomainSocketChannelConfig
setWriteBufferWaterMark
in class EpollChannelConfig
public EpollDomainSocketChannelConfig setAutoRead(boolean autoRead)
setAutoRead
in interface io.netty.channel.ChannelConfig
setAutoRead
in interface io.netty.channel.unix.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(io.netty.channel.unix.DomainSocketReadMode mode)
setReadMode
in interface io.netty.channel.unix.DomainSocketChannelConfig
public io.netty.channel.unix.DomainSocketReadMode getReadMode()
getReadMode
in interface io.netty.channel.unix.DomainSocketChannelConfig
Copyright © 2008–2019 The Netty Project. All rights reserved.