Package io.netty.channel.epoll
Class EpollDomainSocketChannelConfig
- java.lang.Object
-
- io.netty.channel.DefaultChannelConfig
-
- io.netty.channel.epoll.EpollChannelConfig
-
- io.netty.channel.epoll.EpollDomainSocketChannelConfig
-
- All Implemented Interfaces:
io.netty.channel.ChannelConfig,io.netty.channel.socket.DuplexChannelConfig,io.netty.channel.unix.DomainSocketChannelConfig
public final class EpollDomainSocketChannelConfig extends EpollChannelConfig implements io.netty.channel.unix.DomainSocketChannelConfig, io.netty.channel.socket.DuplexChannelConfig
-
-
Method Summary
-
Methods inherited from class io.netty.channel.epoll.EpollChannelConfig
autoReadCleared, getEpollMode, getMaxBytesPerGatheringWrite, setMaxBytesPerGatheringWrite, socket
-
Methods inherited from class io.netty.channel.DefaultChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setMaxMessagesPerWrite, 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
-
-
-
-
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
-
setMaxMessagesPerRead
@Deprecated public EpollDomainSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.ChannelConfig- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Specified by:
setMaxMessagesPerReadin interfaceio.netty.channel.socket.DuplexChannelConfig- Overrides:
setMaxMessagesPerReadin classEpollChannelConfig
-
setConnectTimeoutMillis
public EpollDomainSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
- Specified by:
setConnectTimeoutMillisin interfaceio.netty.channel.ChannelConfig- Specified by:
setConnectTimeoutMillisin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Overrides:
setConnectTimeoutMillisin classEpollChannelConfig
-
setWriteSpinCount
public EpollDomainSocketChannelConfig setWriteSpinCount(int writeSpinCount)
- Specified by:
setWriteSpinCountin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteSpinCountin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Specified by:
setWriteSpinCountin interfaceio.netty.channel.socket.DuplexChannelConfig- Overrides:
setWriteSpinCountin classEpollChannelConfig
-
setRecvByteBufAllocator
public EpollDomainSocketChannelConfig setRecvByteBufAllocator(io.netty.channel.RecvByteBufAllocator allocator)
- Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Specified by:
setRecvByteBufAllocatorin interfaceio.netty.channel.socket.DuplexChannelConfig- Overrides:
setRecvByteBufAllocatorin classEpollChannelConfig
-
setAllocator
public EpollDomainSocketChannelConfig setAllocator(io.netty.buffer.ByteBufAllocator allocator)
- Specified by:
setAllocatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setAllocatorin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Specified by:
setAllocatorin interfaceio.netty.channel.socket.DuplexChannelConfig- Overrides:
setAllocatorin classEpollChannelConfig
-
setAutoClose
public EpollDomainSocketChannelConfig setAutoClose(boolean autoClose)
- Specified by:
setAutoClosein interfaceio.netty.channel.ChannelConfig- Specified by:
setAutoClosein interfaceio.netty.channel.unix.DomainSocketChannelConfig- Specified by:
setAutoClosein interfaceio.netty.channel.socket.DuplexChannelConfig- Overrides:
setAutoClosein classio.netty.channel.DefaultChannelConfig
-
setMessageSizeEstimator
public EpollDomainSocketChannelConfig setMessageSizeEstimator(io.netty.channel.MessageSizeEstimator estimator)
- Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.ChannelConfig- Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Specified by:
setMessageSizeEstimatorin interfaceio.netty.channel.socket.DuplexChannelConfig- Overrides:
setMessageSizeEstimatorin classEpollChannelConfig
-
setWriteBufferLowWaterMark
@Deprecated public EpollDomainSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Deprecated.- Specified by:
setWriteBufferLowWaterMarkin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteBufferLowWaterMarkin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Overrides:
setWriteBufferLowWaterMarkin classEpollChannelConfig
-
setWriteBufferHighWaterMark
@Deprecated public EpollDomainSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Deprecated.- Specified by:
setWriteBufferHighWaterMarkin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteBufferHighWaterMarkin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Overrides:
setWriteBufferHighWaterMarkin classEpollChannelConfig
-
setWriteBufferWaterMark
public EpollDomainSocketChannelConfig setWriteBufferWaterMark(io.netty.channel.WriteBufferWaterMark writeBufferWaterMark)
- Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.ChannelConfig- Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Specified by:
setWriteBufferWaterMarkin interfaceio.netty.channel.socket.DuplexChannelConfig- Overrides:
setWriteBufferWaterMarkin classEpollChannelConfig
-
setAutoRead
public EpollDomainSocketChannelConfig setAutoRead(boolean autoRead)
- Specified by:
setAutoReadin interfaceio.netty.channel.ChannelConfig- Specified by:
setAutoReadin interfaceio.netty.channel.unix.DomainSocketChannelConfig- Specified by:
setAutoReadin interfaceio.netty.channel.socket.DuplexChannelConfig- Overrides:
setAutoReadin classEpollChannelConfig
-
setEpollMode
public EpollDomainSocketChannelConfig 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
-
setReadMode
public EpollDomainSocketChannelConfig setReadMode(io.netty.channel.unix.DomainSocketReadMode mode)
- Specified by:
setReadModein interfaceio.netty.channel.unix.DomainSocketChannelConfig
-
getReadMode
public io.netty.channel.unix.DomainSocketReadMode getReadMode()
- Specified by:
getReadModein interfaceio.netty.channel.unix.DomainSocketChannelConfig
-
isAllowHalfClosure
public boolean isAllowHalfClosure()
- Specified by:
isAllowHalfClosurein interfaceio.netty.channel.socket.DuplexChannelConfig
-
setAllowHalfClosure
public EpollDomainSocketChannelConfig setAllowHalfClosure(boolean allowHalfClosure)
- Specified by:
setAllowHalfClosurein interfaceio.netty.channel.socket.DuplexChannelConfig
-
getSendBufferSize
public int getSendBufferSize()
-
setSendBufferSize
public EpollDomainSocketChannelConfig setSendBufferSize(int sendBufferSize)
-
getReceiveBufferSize
public int getReceiveBufferSize()
-
setReceiveBufferSize
public EpollDomainSocketChannelConfig setReceiveBufferSize(int receiveBufferSize)
-
-