adobe / adobe/aio-lib-java

` events_mgmt` : need a way to add multiple EventsOfInterest when registering a new event consumer

未关闭
#24 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
Java
星标
7
派生
22
PR 合并指标
30 天内没有已合并 PR

描述

### There should be a way to add multiple ProviderId/EventCode combinations when registering an event consumer using this library.

### Currently, there is no way to add multiple EventsOfInterest while registering an event consumer using this library. We need a way to

### Reproduce Scenario (including but not limited to)
Optional created = this.registrationService.createRegistration(
RegistrationInputModel.builder()
.description(this.eventConsumerConfig.event_registration_description())
.name(this.eventConsumerConfig.event_registration_name())

//Only allows one combination of provider and event code!
//What If i want to add more than one combination to listen to in this journal?
.addEventsOfInterests(EventsOfInterest.builder()
.setEventCode(this.eventConsumerConfig.aio_event_code())
.setProviderId(providerId).build())
);
#### Steps to Reproduce
See above

#### Platform and Version
Java 11

#### Sample Code that illustrates the problem
See above

#### Logs taken while reproducing problem
N/A because i cannot add multiple EventsOfInterest

贡献指南

打开贡献指南

调研方向

从示例中的 RegistrationInputModel.builder()、addEventsOfInterests() 和 registrationService.createRegistration() 开始。跟踪 EventsOfInterest 在注册期间的存储方式,然后使注册接受多个 ProviderId/EventCode 组合。当 consumer 可以注册多个 EventsOfInterest 时即算完成;如果存在 Java 11 示例或测试,请使用它进行验证。

由索引模型根据 Issue 内容生成。

评估

技术栈
java
领域
api
Issue 类型
功能
难度
3/5
预计耗时
1-2 天
活跃度
停滞
描述清晰度
基本清楚
新手友好度
38/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。