GeezerVison is showing netty.io — DefaultDatagramChannelConfig (Netty API Reference (4.1.141.Final))
Class DefaultDatagramChannelConfig
-
Field Summary
channel
Modifier and Type
Field
Description
-
Constructor Summary
Constructors
-
Method Summary
Modifier and Type
Method
Description
Gets the address of the network interface used for multicast packets.
<T> T
int
int
int
int
boolean
boolean
boolean
Sets whether the Channel should be closed automatically and immediately on write failure.
Sets the connect timeout of the channel in milliseconds.
Sets the address of the network interface used for multicast packets.
Set the maximum number of message to write per eventloop run.
<T> boolean
Sets a configuration property with the specified name and value.
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.
autoReadCleared, getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions, validate
Modifier and Type
Method
Description
protected void
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.
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
-
Constructor Details
-
DefaultDatagramChannelConfig
-
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 DefaultChannelConfig
- Returns:
true if and only if the property has been set
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
setWriteBufferHighWaterMark
-
setWriteBufferLowWaterMark
-
-
-
setMaxMessagesPerWrite
Set the maximum number of message to write per eventloop run. Once this limit is
reached we will continue to process other events before trying to write the remaining messages.
- Overrides:
setMaxMessagesPerWrite in class DefaultChannelConfig
|