Package io.netty.channel.uring
Class IoUringStreamChannelConfig
- java.lang.Object
-
- io.netty.channel.DefaultChannelConfig
-
- io.netty.channel.uring.IoUringChannelConfig
-
- io.netty.channel.uring.IoUringStreamChannelConfig
-
- All Implemented Interfaces:
ChannelConfig
- Direct Known Subclasses:
IoUringDomainSocketChannelConfig,IoUringSocketChannelConfig
abstract class IoUringStreamChannelConfig extends IoUringChannelConfig
-
-
Field Summary
Fields Modifier and Type Field Description private shortbufferGroupId-
Fields inherited from class io.netty.channel.DefaultChannelConfig
channel
-
-
Constructor Summary
Constructors Constructor Description IoUringStreamChannelConfig(AbstractIoUringChannel channel)IoUringStreamChannelConfig(AbstractIoUringChannel channel, RecvByteBufAllocator allocator)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (package private) shortgetBufferGroupId()<T> TgetOption(ChannelOption<T> option)Return the value of the givenChannelOptionjava.util.Map<ChannelOption<?>,java.lang.Object>getOptions()Return all setChannelOption's.(package private) IoUringStreamChannelConfigsetBufferGroupId(short bufferGroupId)<T> booleansetOption(ChannelOption<T> option, T value)Sets a configuration property with the specified name and value.-
Methods inherited from class io.netty.channel.uring.IoUringChannelConfig
autoReadCleared, setAllocator, setAutoClose, setAutoRead, setConnectTimeoutMillis, setMaxMessagesPerRead, setMaxMessagesPerWrite, setMessageSizeEstimator, setRecvByteBufAllocator, setWriteBufferHighWaterMark, setWriteBufferLowWaterMark, setWriteBufferWaterMark, setWriteSpinCount
-
Methods inherited from class io.netty.channel.DefaultChannelConfig
getAllocator, getConnectTimeoutMillis, getMaxMessagesPerRead, getMaxMessagesPerWrite, getMessageSizeEstimator, getOptions, getRecvByteBufAllocator, getWriteBufferHighWaterMark, getWriteBufferLowWaterMark, getWriteBufferWaterMark, getWriteSpinCount, isAutoClose, isAutoRead, setOptions, validate
-
-
-
-
Constructor Detail
-
IoUringStreamChannelConfig
IoUringStreamChannelConfig(AbstractIoUringChannel channel)
-
IoUringStreamChannelConfig
IoUringStreamChannelConfig(AbstractIoUringChannel channel, RecvByteBufAllocator allocator)
-
-
Method Detail
-
getOption
public <T> T getOption(ChannelOption<T> option)
Description copied from interface:ChannelConfigReturn the value of the givenChannelOption- Specified by:
getOptionin interfaceChannelConfig- Overrides:
getOptionin classIoUringChannelConfig
-
setOption
public <T> boolean setOption(ChannelOption<T> option, T value)
Description copied from interface:ChannelConfigSets 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:
setOptionin interfaceChannelConfig- Overrides:
setOptionin classIoUringChannelConfig- Returns:
trueif and only if the property has been set
-
getOptions
public java.util.Map<ChannelOption<?>,java.lang.Object> getOptions()
Description copied from interface:ChannelConfigReturn all setChannelOption's.- Specified by:
getOptionsin interfaceChannelConfig- Overrides:
getOptionsin classDefaultChannelConfig
-
getBufferGroupId
short getBufferGroupId()
-
setBufferGroupId
IoUringStreamChannelConfig setBufferGroupId(short bufferGroupId)
-
-