Skip to content

责任链模式,一对一匹配 #3

Closed

Description

@vigorous2008

责任链模式,一对一匹配

Originally posted by @hiwepy in #1 (comment)

怎么配置呢

Activity

  1. loong10k commented on Nov 17, 2026

    @loong10k
    Collaborator

    2.7.x 的一对一匹配示例和可运行测试已经放在 PR #10:spring.disruptor.handler-definitions[0].definition-map 将 /orders/created 映射到 createdHandler、/orders/cancelled 映射到 cancelledHandler;事件设置 topic=orders 和 tag=created 时路由为 /orders/created,测试确认只调用 createdHandler。完整配置与处理器代码见 https://github.com/easy-4-java/disruptor-spring-boot-starter/blob/ed460c43676c3913e107766dad6ad82d297617ae/docs/handler-chain.md 。PR 已通过 JDK 8 全量验证和远端 CI,待版本分支按约定推广后关闭此 Issue。

  2. loong10k commented on Nov 17, 2026

    @loong10k
    Collaborator

    Resolution is now on feature/REQ-20261117-wandl-disruptor-boot2 and has passed feature → test/20261118 via PR #10. The test branch push and test → 2.7.x draft PR #11 both passed JDK 8 CI (eight tests; existing 90% JaCoCo gate unchanged). The issue remains open until the final version-line promotion decision and merge.

  3. loong10k commented on Nov 17, 2026

    @loong10k
    Collaborator

    已在独立功能分支 feature/REQ-20261118-wandl-disruptor-boot26-startup 修复 Boot 2.6 主线,并创建草稿 PR #12:#12

    • 将 disruptor-extension 依赖及代码调用对齐到当前 io.github.easy4j API,修复原主线无法编译、启动的问题。
    • 恢复真实执行的 Spring Boot 2.6.15 启动测试,新增 publisher 注入、一对一事件路由及处理顺序回归测试;本地 JDK 8 mvn clean verify 共 4 个测试通过。
    • 对应提交 fdd0586a34e0eb02fbd9616d147d579cf4f2eb5f 的远端 JDK 8 CI 已通过:https://github.com/easy-4-java/disruptor-spring-boot-starter/actions/runs/44194488174

    当前 PR 是验证用草稿。仓库已有 test/20261118 承载不兼容的 Boot 2.7 变更,因此 2.6 修复尚未按 feature → 独立 test → main 合并;Issue 保持开放直至主线合入并验证。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions