public Futures.WriteFuture writeAndFlush(NioChannel channel, Object msg) {
        SelectionKey key = channel.socketChannel().keyFor(selectorLoop.selector());
        if(key != null && key.isValid()){
            key.interestOps(SelectionKey.OP_WRITE);
        }
        return write(channel, msg, true);
    }
@author Robert HG (254963746@qq.com) on 1/24/16.
lts-core/src/main/java/com/github/ltsopensource/nio/processor/AbstractNioProcessor.java