Open Patagonicus opened 11 years ago
There is an option boolean allowNIO
, if that suffices.
I want it to be more flexible. My idea is to have a class that'll generate the necessary objects and gets configuration options from the config file (maybe an array of Strings or a String->String map). But then I also need to figure out how to get Eclipse to use that. Maybe another config option or something.
Netty can use Java's old I/O implementation (OIO), the NIO introduced in Java 4 and NIO2 (called AIO in Netty) introduced in Java 7. The best way to do so is probably to add a config option that provides the name of a factory which in turn creates the EventLoopGroups and ChannelFactories needed by Netty.