Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
None
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
- Blocked
-
GEODE-4831 documentation for registerInterest API changes
- Closed
- links to