Class NioUtils
java.lang.Object
com.xpdustry.claj.server.util.NioUtils
-
Constructor Details
-
NioUtils
public NioUtils()
-
-
Method Details
-
newSelector
- Throws:
IOException
-
newOptimizedSelector
- Returns:
- a selector with an optimized
Selector.selectedKeys()that does not allocate a new node everytimes a key become available, and reuses iterators. - Throws:
RuntimeException- if the method fails to optimize the selector.IOException
-