【发布时间】:2016-07-19 18:51:38
【问题描述】:
我有一个 eventthub,我正在向它发送数据。现在我需要接收这些数据。所以我按照eventthub页面中的教程进行操作
https://azure.microsoft.com/en-us/documentation/articles/event-hubs-java-ephjava-getstarted/
“在 Java 中使用 EventProcessorHost 接收消息”
在所有的课程中它都不让我 @覆盖。它给了我以下错误。
Multiple markers at this line
- implements com.microsoft.azure.eventprocessorhost.IEventProcessor.onOpen
- The method onOpen(PartitionContext) of type EventProcessor must override a superclass
我已经添加了 pom 中指定的依赖项(我使用的是 maven 项目)。
<dependencies>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-eventhubs</artifactId>
<version>0.7.2</version>
</dependency>
<dependency>
<groupId>com.microsoft.azure</groupId>
<artifactId>azure-eventhubs-eph</artifactId>
<version>0.7.2</version>
</dependency>
</dependencies>
【问题讨论】:
标签: java azure azure-eventhub