@Internal @Singleton @Requires(classes=io.netty.channel.kqueue.KQueue.class, condition=KQueueAvailabilityCondition.class) public class KQueueChannelOptionFactory extends java.lang.Object implements ChannelOptionFactory, TypeConverterRegistrar
Constructor and Description |
---|
KQueueChannelOptionFactory() |
Modifier and Type | Method and Description |
---|---|
io.netty.channel.ChannelOption<?> |
channelOption(java.lang.String name)
Creates a channel options.
|
java.lang.Object |
convertValue(io.netty.channel.ChannelOption<?> option,
java.lang.Object value,
Environment env)
Converts the specified value given the channel option type.
|
void |
register(ConversionService<?> conversionService)
Interface for registrars of
TypeConverter instances. |
public io.netty.channel.ChannelOption<?> channelOption(java.lang.String name)
ChannelOptionFactory
channelOption
in interface ChannelOptionFactory
name
- The name of the option.public java.lang.Object convertValue(io.netty.channel.ChannelOption<?> option, java.lang.Object value, Environment env)
ChannelOptionFactory
convertValue
in interface ChannelOptionFactory
option
- The channel option.value
- The value to convert.env
- The environment use for the conversion.public void register(ConversionService<?> conversionService)
TypeConverterRegistrar
TypeConverter
instances.register
in interface TypeConverterRegistrar
conversionService
- The ConversionService