第 129 章 Guava EventBus Component
从 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
实例的名称。