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

Region registerInterest API usage of type parameters is broken

    XMLWordPrintableJSON

    Details

      Description

      The registerInterest API works for single key registration but is broken for all other types of registration if the Region is declared with type parameters:

      Single key (works):

      Region<Integer, ValueClass> region = clientRegionFactory.create(regionName);
      region.registerInterest(1);
      

      ALL_KEYS token is broken (fails to compile):

      Region<Integer, ValueClass> region = clientRegionFactory.create(regionName);
      region.registerInterest("ALL_KEYS");
      

      List of keys is broken (fails to compile):

      Region<Integer, ValueClass> region = clientRegionFactory.create(regionName);
      List<Integer> listOfKeys = new ArrayList<>();
      listOfKeys.add(1);
      listOfKeys.add(2);
      region.registerInterest(listOfKeys);
      

      When this ticket is fixed and the API is updated, we should consider adding support for var args:

      Region<Integer, ValueClass> region = clientRegionFactory.create(regionName);
      region.registerInterest(1, 2, 3);
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jasonhuynh Jason Huynh
                Reporter:
                klund Kirk Lund
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 2.5h
                  2.5h