GeezerVison is showing netty.io — ServerSocketChannelConfig (Netty API Reference (4.1.141.Final))
Interface ServerSocketChannelConfig
-
Method Summary
Modifier and Type
Method
Description
int
Gets the backlog value to specify when the channel binds to a local
address.
int
boolean
Sets the backlog value to specify when the channel binds to a local
address.
Sets the connect timeout of the channel in milliseconds.
Sets the high water mark of the write buffer.
Sets the low water mark of the write buffer.
Set the WriteBufferWaterMark which is used for setting the high and low
water mark of the write buffer.
Methods inherited from interface ChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMessageSizeEstimator, getOption, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setOption, setOptions
Modifier and Type
Method
Description
int
Returns the connect timeout of the channel in milliseconds.
int
<T> T
int
Returns the high water mark of the write buffer.
int
Returns the low water mark of the write buffer.
Returns the WriteBufferWaterMark which is used for setting the high and low
water mark of the write buffer.
int
boolean
Returns true if and only if the Channel will be closed automatically and immediately on
write failure.
boolean
Returns true if and only if ChannelHandlerContext.read() will be invoked automatically so that
a user application doesn't need to call it at all.
Sets whether the Channel should be closed automatically and immediately on write failure.
<T> boolean
Sets a configuration property with the specified name and value.
boolean
Sets the configuration properties from the specified Map.
-
Method Details
-
getBacklog
int getBacklog()
Gets the backlog value to specify when the channel binds to a local
address.
-
setBacklog
Sets the backlog value to specify when the channel binds to a local
address.
-
-
-
getReceiveBufferSize
int getReceiveBufferSize()
-
-
setPerformancePreferences
-
setConnectTimeoutMillis
Sets the connect timeout of the channel in milliseconds. If the
Channel does not support connect operation, this property is not
used at all, and therefore will be ignored.
- Specified by:
setConnectTimeoutMillis in interface ChannelConfig
- Parameters:
connectTimeoutMillis - the connect timeout in milliseconds.
0 to disable.
-
-
setWriteSpinCount
Sets the maximum loop count for a write operation until
WritableByteChannel.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 is 16.
- Specified by:
setWriteSpinCount in interface ChannelConfig
-
-
-
-
-
setWriteBufferHighWaterMark
-
setWriteBufferLowWaterMark
-
|