org.voovan.network.NioUtil Maven / Gradle / Ivy
package org.voovan.network;
import java.lang.reflect.Field;
import java.nio.channels.SelectionKey;
import java.security.AccessController;
import java.security.PrivilegedAction;
/**
* Nio通信工具类
*
* @author: helyho
* Voovan Framework.
* WebSite: https://github.com/helyho/Voovan
* Licence: Apache v2 License
*/
public class NioUtil {
public static Field selectedKeysField;
public static Field publicSelectedKeysField;
static {
Object res = AccessController.doPrivileged(new PrivilegedAction