NioSocketService is an NIO-based socket service, comparable to the blocking-IO-based socket service.
The NIO server is enabled in the server.properties file by setting the "enable.nio.connector" property to "true". If you want to adjust the number of SelectorManager instances that are used, change "nio.connector.selectors" to a positive integer value. Otherwise, the number of selectors will be equal to the number of CPUs visible to the JVM.
This code uses the NIO APIs directly. It would be a good idea to consider some of the NIO frameworks to handle this more cleanly, efficiently, and to handle corner cases.
@see voldemort.server.socket.SocketService