[ 
https://issues.apache.org/jira/browse/GEODE-1911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Jared Stewart updated GEODE-1911:
---------------------------------
    Priority: Trivial  (was: Major)

> Provide CqAttributes Builder in addition to existing Factory
> ------------------------------------------------------------
>
>                 Key: GEODE-1911
>                 URL: https://issues.apache.org/jira/browse/GEODE-1911
>             Project: Geode
>          Issue Type: Wish
>          Components: client queues, querying
>            Reporter: Jared Stewart
>            Priority: Trivial
>
> As a user, it requires at three lines of code to create a minimal 
> {{CqAttributes}} object with one {{CqListener}}:
> {code}
> CqAttributesFactory cqf = new CqAttributesFactory();
>         cqf.addCqListener(new CQListener());
>         CqAttributes cqa = cqf.create();
> {code}
> This could be done in one line with less boilerplate if we also provided a 
> CqAttributesBuilder. (See [the builder 
> pattern|http://www.informit.com/articles/article.aspx?p=1216151&seqNum=2].)
> {code}
> CqAttributes cqa = new CqAttributes.Builder().withCqListener(new 
> CQListener()).build();
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to