GeezerVison is showing netty.io — KQueueDomainSocketChannelConfig (Netty API Reference (4.1.141.Final))
Class KQueueDomainSocketChannelConfig
-
Field Summary
channel
Modifier and Type
Field
Description
-
Method Summary
Modifier and Type
Method
Description
<T> T
int
int
boolean
Returns true if and only if the channel should not close itself when its remote
peer shuts down output to make the connection half-closed.
Sets whether the channel should not close itself when its remote peer shuts down output to
make the connection half-closed.
Sets whether the Channel should be closed automatically and immediately on write failure.
Sets the connect timeout of the channel in milliseconds.
<T> boolean
Sets a configuration property with the specified name and value.
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, 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.
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
-
setRcvAllocTransportProvidesGuess
-
-
-
-
-
-
-
-
setWriteBufferLowWaterMark
-
setWriteBufferHighWaterMark
-
-
-
-
-
getSendBufferSize
public int getSendBufferSize()
-
-
getReceiveBufferSize
public int getReceiveBufferSize()
-
-
isAllowHalfClosure
public boolean isAllowHalfClosure()
Returns true if and only if the channel should not close itself when its remote
peer shuts down output to make the connection half-closed. If false, the connection
is closed automatically when the remote peer shuts down output.
- Specified by:
isAllowHalfClosure in interface DuplexChannelConfig
-
|