Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-1911

Provide CqAttributes Builder in addition to existing Factory

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • client queues, querying
    • None

    Description

      As a user, it requires at three lines of code to create a minimal CqAttributes object with one CqListener:

      CqAttributesFactory cqf = new CqAttributesFactory();
              cqf.addCqListener(new CQListener());
              CqAttributes cqa = cqf.create();
      

      This could be done in one line with less boilerplate if we also provided a CqAttributesBuilder. (See the builder pattern.)

      CqAttributes cqa = new CqAttributes.Builder().withCqListener(new CQListener()).build();
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            jstewart Jared Stewart
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: