会员
周边
新闻
博问
闪存
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
Bannirui's Blog
博客园
首页
新随笔
联系
订阅
管理
上一页
1
2
3
4
5
6
7
下一页
2022年12月2日
Dubbo源码-11-服务引用流程
摘要: 一 入口 public static void main(String[] args) { // 引用远程服务 此实例很重 封装了与注册中心的连接以及与提供者的连接 ReferenceConfig<DemoService> reference = new ReferenceConfig<DemoSe
阅读全文
posted @ 2022-12-02 15:57 Bannirui
阅读(114)
评论(0)
推荐(0)
2022年11月27日
Netty源码-00-启动
摘要: 一 源码 我fork的源码带注释 分支study 二 环境 | | 版本 | | | | | Netty | 4.1.169 | | Java | 8 | 三 Samples 1 服务端 1.1 启动类 /* * Copyright 2012 The Netty Project * * The Ne
阅读全文
posted @ 2022-11-27 22:17 Bannirui
阅读(77)
评论(0)
推荐(0)
Dubbo源码-10-Transporter
摘要: 一 接口 @SPI("netty") public interface Transporter { /** * Bind a server. * * @param url server url * @param handler * @return server * @throws RemotingE
阅读全文
posted @ 2022-11-27 22:07 Bannirui
阅读(50)
评论(0)
推荐(0)
2022年11月25日
Dubbo源码-09-RegistryFactory
摘要: 作用 远程配置中心的实现 ZookeeperRegistryFactory 实现zookeeper的远程配置中心,获取zk的读取zkClient 一 接口声明 @SPI("dubbo") public interface RegistryFactory { /** * Connect to the
阅读全文
posted @ 2022-11-25 16:50 Bannirui
阅读(75)
评论(0)
推荐(0)
Dubbo源码-08-Exchanger
摘要: 一 接口声明 @SPI(HeaderExchanger.NAME) public interface Exchanger { /** * bind. * * @param url * @param handler * @return message server */ @Adaptive({Cons
阅读全文
posted @ 2022-11-25 16:50 Bannirui
阅读(47)
评论(0)
推荐(0)
Dubbo源码-07-Protocol
摘要: 作用 生产者 将Invoker对象导出 InjvmProtocol 没有真正的干活逻辑 仅仅是一些属性赋值 DubboProtol 启动Netty服务 RegistryProtol 通过DubboProtocol启动netty服务端 注册远程配置中心 消费者 创建Invoker对象 Registry
阅读全文
posted @ 2022-11-25 16:49 Bannirui
阅读(74)
评论(0)
推荐(0)
Dubbo源码-06-ProxyFactory
摘要: 作用 生产者将要导出的目标对象封装(代理技术或者反射技术)成Invoker对象 一 接口 @SPI("javassist") public interface ProxyFactory { /** * create proxy. * * @param invoker * @return proxy
阅读全文
posted @ 2022-11-25 16:49 Bannirui
阅读(73)
评论(0)
推荐(0)
Dubbo源码-05-服务导出
摘要: 一 入口驱动 public static void main(String[] args) throws IOException { // 服务提供者暴露服务配置 封装了与注册中心的连接 ServiceConfig<DemoService> service = new ServiceConfig<D
阅读全文
posted @ 2022-11-25 16:48 Bannirui
阅读(60)
评论(0)
推荐(0)
2022年11月24日
java15源码-SynchronousQueue
摘要: 一 类图 二 构造方法 public SynchronousQueue() { this(false); } /** * Creates a {@code SynchronousQueue} with the specified fairness policy. * * @param fair if
阅读全文
posted @ 2022-11-24 23:19 Bannirui
阅读(59)
评论(0)
推荐(0)
Dubbo源码-04-SPI
摘要: 一 Dubbo SPI核心 核心实现都在ExtensionLoader中,比较重要的3个入口方法分别是 ExtensionLoader#getExtensionLoader() 扩展实现的加载器 ExtensionLoader#getDefaultExtension() 默认扩展实现 Extensi
阅读全文
posted @ 2022-11-24 19:56 Bannirui
阅读(54)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
下一页
公告