You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@beam.apache.org by "LI Guobao (JIRA)" <ji...@apache.org> on 2019/03/29 13:18:00 UTC
[jira] [Work started] (BEAM-3312) Add convenient "with" to
MqttIO.ConnectionConfiguration
[ https://issues.apache.org/jira/browse/BEAM-3312?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Work on BEAM-3312 started by LI Guobao.
---------------------------------------
> Add convenient "with" to MqttIO.ConnectionConfiguration
> -------------------------------------------------------
>
> Key: BEAM-3312
> URL: https://issues.apache.org/jira/browse/BEAM-3312
> Project: Beam
> Issue Type: Improvement
> Components: io-java-mqtt
> Reporter: Jean-Baptiste Onofré
> Assignee: LI Guobao
> Priority: Major
> Labels: triaged
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Now, for instance, {{MqttIO}}Â requires a {{ConnectionConfiguration}} object to pass the URL and topic name. It means, the user has to do something like:
> {code}
> MqttIO.read() .withConnectionConfiguration(MqttIO.ConnectionConfiguration.create("tcp://localhost:1883", "CAR"))
> {code}
> It's pretty verbose and long. I think it makes sense to provide convenient "direct" method allowing to do:
> {code}
> MqttIO.read().withUrl().withTopic()
> {code}
> or even:
> {code}
> MqttIO.read().withConnection("url", "topic")
> {code}
> The same apply for some other IOs (JMS, ...).
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)