第 129 章 guava EventBus 组件
从 Camel 版本 2.10 开始提供
Google Guava EventBus 允许组件之间发布订阅式通信,无需组件来显式注册。guava-eventbus: 组件在 Camel 和 Google Guava EventBus 基础架构之间提供集成桥接。通过后者的组件,通过 Guava EventBus
交换的消息可以透明转发到 Camel 路由。EventBus 组件还允许将 Camel 交换的正文路由到 Guava EventBus
。
Maven 用户需要将以下依赖项添加到此组件的 pom.xml
中:
129.1. URI 格式 复制链接链接已复制到粘贴板!
复制链接链接已复制到粘贴板!
guava-eventbus:busName[?options]
guava-eventbus:busName[?options]
其中 busName 代表 Camel registry 中的 com.google.common.eventbus.EventBus
实例的名称。