Package io.netty.channel.socket.oio
Interface OioServerSocketChannelConfig
-
- All Superinterfaces:
ChannelConfig,ServerSocketChannelConfig
- All Known Implementing Classes:
DefaultOioServerSocketChannelConfig
@Deprecated public interface OioServerSocketChannelConfig extends ServerSocketChannelConfig
Deprecated.use NIO / EPOLL / KQUEUE transport.AServerSocketChannelConfigfor aOioServerSocketChannel.Available options
In addition to the options provided byServerSocketChannelConfig,OioServerSocketChannelConfigallows the following options in the option map:Name Associated setter method ChannelOption.SO_TIMEOUTsetSoTimeout(int)
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description intgetSoTimeout()Deprecated.Returns the maximal time a operation on the underlying socket may block.OioServerSocketChannelConfigsetAllocator(ByteBufAllocator allocator)Deprecated.Set theByteBufAllocatorwhich is used for the channel to allocate buffers.OioServerSocketChannelConfigsetAutoClose(boolean autoClose)Deprecated.Sets whether theChannelshould be closed automatically and immediately on write failure.OioServerSocketChannelConfigsetAutoRead(boolean autoRead)Deprecated.Sets ifChannelHandlerContext.read()will be invoked automatically so that a user application doesn't need to call it at all.OioServerSocketChannelConfigsetBacklog(int backlog)Deprecated.Sets the backlog value to specify when the channel binds to a local address.OioServerSocketChannelConfigsetConnectTimeoutMillis(int connectTimeoutMillis)Deprecated.Sets the connect timeout of the channel in milliseconds.OioServerSocketChannelConfigsetMaxMessagesPerRead(int maxMessagesPerRead)Deprecated.OioServerSocketChannelConfigsetMessageSizeEstimator(MessageSizeEstimator estimator)Deprecated.Set theMessageSizeEstimatorwhich is used for the channel to detect the size of a message.OioServerSocketChannelConfigsetPerformancePreferences(int connectionTime, int latency, int bandwidth)Deprecated.Sets the performance preferences as specified inServerSocket.setPerformancePreferences(int, int, int).OioServerSocketChannelConfigsetReceiveBufferSize(int receiveBufferSize)Deprecated.Gets theStandardSocketOptions.SO_SNDBUFoption.OioServerSocketChannelConfigsetRecvByteBufAllocator(RecvByteBufAllocator allocator)Deprecated.Set theRecvByteBufAllocatorwhich is used for the channel to allocate receive buffers.OioServerSocketChannelConfigsetReuseAddress(boolean reuseAddress)Deprecated.Sets theStandardSocketOptions.SO_REUSEADDRoption.OioServerSocketChannelConfigsetSoTimeout(int timeout)Deprecated.Sets the maximal time a operation on the underlying socket may block.OioServerSocketChannelConfigsetWriteBufferHighWaterMark(int writeBufferHighWaterMark)Deprecated.Sets the high water mark of the write buffer.OioServerSocketChannelConfigsetWriteBufferLowWaterMark(int writeBufferLowWaterMark)Deprecated.Sets the low water mark of the write buffer.OioServerSocketChannelConfigsetWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark)Deprecated.Set theWriteBufferWaterMarkwhich is used for setting the high and low water mark of the write buffer.OioServerSocketChannelConfigsetWriteSpinCount(int writeSpinCount)Deprecated.Sets the maximum loop count for a write operation untilWritableByteChannel.write(ByteBuffer)returns a non-zero value.-
Methods inherited from interface io.netty.channel.ChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOption, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOption, setOptions
-
Methods inherited from interface io.netty.channel.socket.ServerSocketChannelConfig
getBacklog, getReceiveBufferSize, isReuseAddress
-
-
-
-
Method Detail
-
setSoTimeout
OioServerSocketChannelConfig setSoTimeout(int timeout)
Deprecated.Sets the maximal time a operation on the underlying socket may block.
-
getSoTimeout
int getSoTimeout()
Deprecated.Returns the maximal time a operation on the underlying socket may block.
-
setBacklog
OioServerSocketChannelConfig setBacklog(int backlog)
Deprecated.Description copied from interface:ServerSocketChannelConfigSets the backlog value to specify when the channel binds to a local address.- Specified by:
setBacklogin interfaceServerSocketChannelConfig
-
setReuseAddress
OioServerSocketChannelConfig setReuseAddress(boolean reuseAddress)
Deprecated.Description copied from interface:ServerSocketChannelConfigSets theStandardSocketOptions.SO_REUSEADDRoption.- Specified by:
setReuseAddressin interfaceServerSocketChannelConfig
-
setReceiveBufferSize
OioServerSocketChannelConfig setReceiveBufferSize(int receiveBufferSize)
Deprecated.Description copied from interface:ServerSocketChannelConfigGets theStandardSocketOptions.SO_SNDBUFoption.- Specified by:
setReceiveBufferSizein interfaceServerSocketChannelConfig
-
setPerformancePreferences
OioServerSocketChannelConfig setPerformancePreferences(int connectionTime, int latency, int bandwidth)
Deprecated.Description copied from interface:ServerSocketChannelConfigSets the performance preferences as specified inServerSocket.setPerformancePreferences(int, int, int).- Specified by:
setPerformancePreferencesin interfaceServerSocketChannelConfig
-
setConnectTimeoutMillis
OioServerSocketChannelConfig setConnectTimeoutMillis(int connectTimeoutMillis)
Deprecated.Description copied from interface:ChannelConfigSets the connect timeout of the channel in milliseconds. If theChanneldoes not support connect operation, this property is not used at all, and therefore will be ignored.- Specified by:
setConnectTimeoutMillisin interfaceChannelConfig- Specified by:
setConnectTimeoutMillisin interfaceServerSocketChannelConfig- Parameters:
connectTimeoutMillis- the connect timeout in milliseconds.0to disable.
-
setMaxMessagesPerRead
@Deprecated OioServerSocketChannelConfig setMaxMessagesPerRead(int maxMessagesPerRead)
Deprecated.- Specified by:
setMaxMessagesPerReadin interfaceChannelConfig- Specified by:
setMaxMessagesPerReadin interfaceServerSocketChannelConfig
-
setWriteSpinCount
OioServerSocketChannelConfig setWriteSpinCount(int writeSpinCount)
Deprecated.Description copied from interface:ChannelConfigSets the maximum loop count for a write operation untilWritableByteChannel.write(ByteBuffer)returns a non-zero value. It is similar to what a spin lock is used for in concurrency programming. It improves memory utilization and write throughput depending on the platform that JVM runs on. The default value is16.- Specified by:
setWriteSpinCountin interfaceChannelConfig- Specified by:
setWriteSpinCountin interfaceServerSocketChannelConfig
-
setAllocator
OioServerSocketChannelConfig setAllocator(ByteBufAllocator allocator)
Deprecated.Description copied from interface:ChannelConfigSet theByteBufAllocatorwhich is used for the channel to allocate buffers.- Specified by:
setAllocatorin interfaceChannelConfig- Specified by:
setAllocatorin interfaceServerSocketChannelConfig
-
setRecvByteBufAllocator
OioServerSocketChannelConfig setRecvByteBufAllocator(RecvByteBufAllocator allocator)
Deprecated.Description copied from interface:ChannelConfigSet theRecvByteBufAllocatorwhich is used for the channel to allocate receive buffers.- Specified by:
setRecvByteBufAllocatorin interfaceChannelConfig- Specified by:
setRecvByteBufAllocatorin interfaceServerSocketChannelConfig
-
setAutoRead
OioServerSocketChannelConfig setAutoRead(boolean autoRead)
Deprecated.Description copied from interface:ChannelConfigSets ifChannelHandlerContext.read()will be invoked automatically so that a user application doesn't need to call it at all. The default value istrue.- Specified by:
setAutoReadin interfaceChannelConfig- Specified by:
setAutoReadin interfaceServerSocketChannelConfig
-
setAutoClose
OioServerSocketChannelConfig setAutoClose(boolean autoClose)
Deprecated.Description copied from interface:ChannelConfigSets whether theChannelshould be closed automatically and immediately on write failure. The default istrue.- Specified by:
setAutoClosein interfaceChannelConfig
-
setWriteBufferHighWaterMark
OioServerSocketChannelConfig setWriteBufferHighWaterMark(int writeBufferHighWaterMark)
Deprecated.Description copied from interface:ChannelConfigSets the high water mark of the write buffer. If the number of bytes queued in the write buffer exceeds this value,
Channel.isWritable()will start to returnfalse.- Specified by:
setWriteBufferHighWaterMarkin interfaceChannelConfig- Specified by:
setWriteBufferHighWaterMarkin interfaceServerSocketChannelConfig
-
setWriteBufferLowWaterMark
OioServerSocketChannelConfig setWriteBufferLowWaterMark(int writeBufferLowWaterMark)
Deprecated.Description copied from interface:ChannelConfigSets the low water mark of the write buffer. Once the number of bytes queued in the write buffer exceeded the high water mark and then dropped down below this value,
Channel.isWritable()will start to returntrueagain.- Specified by:
setWriteBufferLowWaterMarkin interfaceChannelConfig- Specified by:
setWriteBufferLowWaterMarkin interfaceServerSocketChannelConfig
-
setWriteBufferWaterMark
OioServerSocketChannelConfig setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark)
Deprecated.Description copied from interface:ChannelConfigSet theWriteBufferWaterMarkwhich is used for setting the high and low water mark of the write buffer.- Specified by:
setWriteBufferWaterMarkin interfaceChannelConfig- Specified by:
setWriteBufferWaterMarkin interfaceServerSocketChannelConfig
-
setMessageSizeEstimator
OioServerSocketChannelConfig setMessageSizeEstimator(MessageSizeEstimator estimator)
Deprecated.Description copied from interface:ChannelConfigSet theMessageSizeEstimatorwhich is used for the channel to detect the size of a message.- Specified by:
setMessageSizeEstimatorin interfaceChannelConfig- Specified by:
setMessageSizeEstimatorin interfaceServerSocketChannelConfig
-
-