GeezerVison is showing netty.io — KQueueServerChannelConfig (Netty API Reference (4.1.141.Final))
Class KQueueServerChannelConfig
-
Field Summary
channel
Modifier and Type
Field
Description
-
Method Summary
Modifier and Type
Method
Description
int
Gets the backlog value to specify when the channel binds to a local
address.
<T> T
int
boolean
boolean
Returns true if TCP FastOpen is enabled.
Sets the backlog value to specify when the channel binds to a local
address.
Sets the connect timeout of the channel in milliseconds.
<T> boolean
Sets a configuration property with the specified name and value.
Enables TCP FastOpen on the server channel.
Set the WriteBufferWaterMark which is used for setting the high and low
water mark of the write buffer.
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setAutoClose, setMaxMessagesPerWrite, setOptions, validate
Modifier and Type
Method
Description
int
Returns the connect timeout of the channel in milliseconds.
int
int
Get the maximum number of message to write per eventloop run.
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.
Set the maximum number of message to write per eventloop run.
boolean
Sets the configuration properties from the specified Map.
protected <T> void
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Method Details
-
-
-
setOption
Sets a configuration property with the specified name and value.
To override this method properly, you must call the super class:
public boolean setOption(ChannelOption<T> option, T value) {
if (super.setOption(option, value)) {
return true;
}
if (option.equals(additionalOption)) {
....
return true;
}
return false;
}
- Specified by:
setOption in interface ChannelConfig
- Overrides:
setOption in class KQueueChannelConfig
- Returns:
true if and only if the property has been set
-
-
-
-
-
-
-
isTcpFastOpen
public boolean isTcpFastOpen()
Returns true if TCP FastOpen is enabled.
- See Also:
-
-
setTcpFastOpen
Enables TCP FastOpen on the server channel. If the underlying os doesn't support TCP_FASTOPEN setting this has no
effect. This has to be set before doing listen on the socket otherwise this takes no effect.
- Parameters:
enableTcpFastOpen - true if TCP FastOpen should be enabled for incoming connections.
- See Also:
-
-
setRcvAllocTransportProvidesGuess
-
setPerformancePreferences
-
-
-
-
-
-
-
setWriteBufferHighWaterMark
-
setWriteBufferLowWaterMark
-
-
|