Interface OioServerSocketChannelConfig
- All Superinterfaces:
ChannelConfig, ServerSocketChannelConfig
- All Known Implementing Classes:
DefaultOioServerSocketChannelConfig
Deprecated.
use NIO / EPOLL / KQUEUE transport.
A
ServerSocketChannelConfig for a OioServerSocketChannel.
Available options
In addition to the options provided byServerSocketChannelConfig,
OioServerSocketChannelConfig allows the following options in the
option map:
| Name | Associated setter method |
|---|---|
ChannelOption.SO_TIMEOUT | setSoTimeout(int) |
-
Method Summary
Modifier and TypeMethodDescriptionintDeprecated.Returns the maximal time a operation on the underlying socket may block.setAllocator(ByteBufAllocator allocator) Deprecated.Set theByteBufAllocatorwhich is used for the channel to allocate buffers.setAutoClose(boolean autoClose) Deprecated.Sets whether theChannelshould be closed automatically and immediately on write failure.setAutoRead(boolean autoRead) Deprecated.Sets ifChannelHandlerContext.read()will be invoked automatically so that a user application doesn't need to call it at all.setBacklog(int backlog) Deprecated.Sets the backlog value to specify when the channel binds to a local address.setConnectTimeoutMillis(int connectTimeoutMillis) Deprecated.Sets the connect timeout of the channel in milliseconds.setMaxMessagesPerRead(int maxMessagesPerRead) Deprecated.setMessageSizeEstimator(MessageSizeEstimator estimator) Deprecated.Set theMessageSizeEstimatorwhich is used for the channel to detect the size of a message.setPerformancePreferences(int connectionTime, int latency, int bandwidth) Deprecated.Sets the performance preferences as specified inServerSocket.setPerformancePreferences(int, int, int).setReceiveBufferSize(int receiveBufferSize) Deprecated.Gets theStandardSocketOptions.SO_SNDBUFoption.setRecvByteBufAllocator(RecvByteBufAllocator allocator) Deprecated.Set theRecvByteBufAllocatorwhich is used for the channel to allocate receive buffers.setReuseAddress(boolean reuseAddress) Deprecated.Sets theStandardSocketOptions.SO_REUSEADDRoption.setSoTimeout(int timeout) Deprecated.Sets the maximal time a operation on the underlying socket may block.setWriteBufferHighWaterMark(int writeBufferHighWaterMark) Deprecated.Sets the high water mark of the write buffer.setWriteBufferLowWaterMark(int writeBufferLowWaterMark) Deprecated.Sets the low water mark of the write buffer.setWriteBufferWaterMark(WriteBufferWaterMark writeBufferWaterMark) Deprecated.Set theWriteBufferWaterMarkwhich is used for setting the high and low water mark of the write buffer.setWriteSpinCount(int writeSpinCount) Deprecated.Sets the maximum loop count for a write operation untilWritableByteChannel.write(ByteBuffer)returns a non-zero value.Methods inherited from interface ChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOption, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOption, setOptionsMethods inherited from interface ServerSocketChannelConfig
getBacklog, getReceiveBufferSize, isReuseAddress
-
Method Details
-
setSoTimeout
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
Deprecated.Description copied from interface:ServerSocketChannelConfigSets the backlog value to specify when the channel binds to a local address.- Specified by:
setBacklogin interfaceServerSocketChannelConfig
-
setReuseAddress
Deprecated.Description copied from interface:ServerSocketChannelConfigSets theStandardSocketOptions.SO_REUSEADDRoption.- Specified by:
setReuseAddressin interfaceServerSocketChannelConfig
-
setReceiveBufferSize
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
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.- Specified by:
setMaxMessagesPerReadin interfaceChannelConfig- Specified by:
setMaxMessagesPerReadin interfaceServerSocketChannelConfig
-
setWriteSpinCount
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
Deprecated.Description copied from interface:ChannelConfigSet theByteBufAllocatorwhich is used for the channel to allocate buffers.- Specified by:
setAllocatorin interfaceChannelConfig- Specified by:
setAllocatorin interfaceServerSocketChannelConfig
-
setRecvByteBufAllocator
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
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
Deprecated.Description copied from interface:ChannelConfigSets whether theChannelshould be closed automatically and immediately on write failure. The default istrue.- Specified by:
setAutoClosein interfaceChannelConfig
-
setWriteBufferHighWaterMark
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
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
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
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
-