GeezerVison is showing netty.io — DomainSocketChannelConfig (Netty API Reference (4.1.141.Final))
Interface DomainSocketChannelConfig
-
Method Summary
Modifier and Type
Method
Description
Sets whether the
Channel should be closed automatically and immediately on write failure.
Sets the connect timeout of the channel in milliseconds.
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, 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.
<T> boolean
Sets a configuration property with the specified name and value.
boolean
Sets the configuration properties from the specified
Map.
-
Method Details
-
-
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
-
-
-
-
setAutoClose
Sets whether the
Channel should be closed automatically and immediately on write failure.
The default is
true.
- Specified by:
setAutoClose in interface ChannelConfig
-
setWriteBufferHighWaterMark
-
setWriteBufferLowWaterMark
-
-
-
-