Package ratpack.server
Interface ServerChannelOptions
-
public interface ServerChannelOptionsExtension mechanism used to set Netty channel options not configurable viaServerConfig.To use, create your own types that implement this interface that will be deserialized from server config data and specify as
required config.Any
ServerConfig.getRequiredConfig()that implements this interface will automatically have itssetOptions(OptionSetter)andsetChildOptions(OptionSetter)methods invoked when building the server.These methods are invoked after setting options based on
ServerConfigvalues, so they may override any such values already set.- Since:
- 1.10
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interfaceServerChannelOptions.OptionSetter
-
Method Summary
All Methods Instance Methods Default Methods Modifier and Type Method Description default voidsetChildOptions(ServerChannelOptions.OptionSetter setter)Sets the channel options for child channels.default voidsetOptions(ServerChannelOptions.OptionSetter setter)Sets the channel options for the server channel.
-
-
-
Method Detail
-
setOptions
default void setOptions(ServerChannelOptions.OptionSetter setter)
Sets the channel options for the server channel.- Parameters:
setter- the option setter
-
setChildOptions
default void setChildOptions(ServerChannelOptions.OptionSetter setter)
Sets the channel options for child channels.- Parameters:
setter- the option setter
-
-