netty源码
horse_xiao
这个作者很懒,什么都没留下…
展开
-
netty源码分析-NioEventLoopGroup
/* * Copyright 2012 The Netty Project * * The Netty Project licenses this file to you under the Apache License, * version 2.0 (the "License"); you may not use this file except in compliance * w...原创 2019-07-05 10:31:24 · 108 阅读 · 0 评论 -
netty源码分析-ChannelFuture
概述 对于netty中的channelfuture来说它主要是一个基于对java中future的一个升级 对于jdk中的future来说函数执行结果是通过get()方法进行获取的 。 然而jdk中future 的get()方法是有两种形式一种是非阻塞(在结果为计算完成时返回空)的直接获取返回值一种是通过阻塞的形式等待返回值。虽然在通过isdone方法可以获取方法是否执行完成但是...原创 2019-07-05 20:20:35 · 504 阅读 · 0 评论