hewencai
adf3ec601a
feat(databus-client): 完成核心组件及编译验证(任务 89-92)
新增核心组件(任务 89-90):
1. HandlerRegistry.java - Handler 策略注册表
- 自动注册所有 SyncEventHandler 和 BatchSyncEventHandler
- 根据 eventType 路由到对应 Handler
- 提供 getIncrementalHandler/getBatchHandler 方法
- 支持 hasIncrementalHandler/hasBatchHandler 检查
2. DatabusClientConsumer.java - 统一消费者
- 监听 databus-sync-{clientCode} Topic(简化版)
- 根据消息字段判断增量/批量消息
- 调用 HandlerRegistry 路由到具体 Handler
- 支持全量同步生命周期回调(onFullSyncStart/onFullSyncComplete)
已存在接口(任务 91-92):
1. SyncEventHandler.java - 增量同步 Handler 接口
2. BatchSyncEventHandler.java - 全量同步 Handler 接口
架构设计:
- 策略模式:通过 HandlerRegistry 动态路由
- Topic 简化:databus-sync-{clientCode}(所有事件共用)
- 消息路由:通过 eventType 字段区分事件类型
- 条件装配:@ConditionalOnProperty 灵活启用/禁用
编译结果:✅ BUILD SUCCESS(30个源文件)
Ref: docs/databus/implementation-checklist.md 任务 89-92
2025-12-04 15:49:44 +08:00
..
2025-12-02 14:10:47 +08:00
2025-12-01 17:46:42 +08:00
2025-11-28 18:12:00 +08:00
2025-09-22 14:53:45 +08:00
2025-11-28 18:12:00 +08:00
2025-12-04 15:49:44 +08:00
2025-12-04 15:49:42 +08:00
2025-11-28 18:12:00 +08:00
2025-11-03 14:20:13 +08:00
2025-11-28 18:12:00 +08:00
2025-11-28 18:12:00 +08:00
2025-11-28 18:12:00 +08:00
2025-12-01 17:46:42 +08:00
2025-10-17 17:40:46 +08:00
2025-11-28 18:12:00 +08:00
2025-11-28 18:12:00 +08:00
2025-11-28 18:12:00 +08:00
2025-11-28 18:12:00 +08:00
2025-12-02 17:45:58 +08:00
2025-11-28 18:12:00 +08:00
2025-09-22 11:55:27 +08:00