geode-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Huynh (JIRA)" <j...@apache.org>
Subject [jira] [Assigned] (GEODE-3813) Region registerInterest API usage of type parameters is broken
Date Mon, 13 Nov 2017 21:46:01 GMT

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

Jason Huynh reassigned GEODE-3813:
----------------------------------

    Assignee: Jason Huynh

> 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, regions
>            Reporter: Kirk Lund
>            Assignee: Jason Huynh
>
> 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
(v6.4.14#64029)

Mime
View raw message