Netty的深入淺出--40.serverBootstrap中channel方法和childHandler方法以及bind方法分析

在netty啓動前,serverBootstrap基本上都要調用channel方法: 題外話:class文件是反射的起源,反射必定是通過class對象來實現的。  進入channel方法: 無參構造:通過該方法傳入的class對象,創建一個channel實例  有參構造的話使用channelFactory:  class對象傳入到類ReflectiveChannelFactory中 通過調用默認的
相關文章
相關標籤/搜索