[ 
https://issues.apache.org/jira/browse/GEODE-3813?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16362750#comment-16362750
 ] 

ASF subversion and git services commented on GEODE-3813:
--------------------------------------------------------

Commit 49cb2eb6fb18966d9fc6c49548edfaf6047a51cc in geode's branch 
refs/heads/feature/GEODE-3967 from [~huynhja]
[ https://gitbox.apache.org/repos/asf?p=geode.git;h=49cb2eb ]

GEODE-3813: Deprecating RegisterInterest ALL_KEYS and List behavior (#1438)

* Now with lazy default pool initialization from GEODE-4511, readyForEvents 
will throw 
   IllegalStateException if no pools available.
* Modified tests based on new behavior introduced in GEODE-4511

> Region registerInterest API usage of type parameters is broken
> --------------------------------------------------------------
>
>                 Key: GEODE-3813
>                 URL: https://issues.apache.org/jira/browse/GEODE-3813
>             Project: Geode
>          Issue Type: Bug
>          Components: client queues
>            Reporter: Kirk Lund
>            Assignee: Jason Huynh
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 1h 50m
>  Remaining Estimate: 0h
>
> 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):
> {noformat}
> Region<Integer, ValueClass> region = clientRegionFactory.create(regionName);
> region.registerInterest(1);
> {noformat}
> ALL_KEYS token is broken (fails to compile):
> {noformat}
> Region<Integer, ValueClass> region = clientRegionFactory.create(regionName);
> region.registerInterest("ALL_KEYS");
> {noformat}
> List of keys is broken (fails to compile):
> {noformat}
> Region<Integer, ValueClass> region = clientRegionFactory.create(regionName);
> List<Integer> listOfKeys = new ArrayList<>();
> listOfKeys.add(1);
> listOfKeys.add(2);
> region.registerInterest(listOfKeys);
> {noformat}
> When this ticket is fixed and the API is updated, we should consider adding 
> support for var args:
> {noformat}
> Region<Integer, ValueClass> region = clientRegionFactory.create(regionName);
> region.registerInterest(1, 2, 3);
> {noformat}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to