geode-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anilkumar Gingade <>
Subject Re: [DISCUSS] changes to registerInterest API
Date Fri, 17 Nov 2017 00:02:58 GMT
+1 Deprecating ALL_KEYS option; I believe this is added before we supported
regex support.

 Doesn't seems like a new API is needed. The regex java doc clearly
specifies the effect of ".*".

+1 for deprecating list argument; and replacing with new API.


On Thu, Nov 16, 2017 at 3:36 PM, Jason Huynh <> wrote:

> For GEODE-3813 <>: Region
> registerInterest API usage of type parameters is broken
> <>
> The current API to registerInterest allows a special string token
> “ALL_KEYS” to be passed in as the parameter to registerInterest(T key).
> This special token causes the registerInterest to behave similar to
> registerInterestRegex(“.*”).  As the ticket states, if the region has been
> typed to anything other than Object or String, the usage of “ALL_KEYS” as a
> parameter results in a compilation error.
> Proposals:
> I would like to deprecate the special string “ALL_KEYS” and document a
> workaround of using registerInterestRegex(“.*”) or we can add a new API
> called registerInterestAllKeys()
> I think we should also deprecate passing a List Object of keys into
> registerInterest.  It has the same compilation restrictions as “ALL_KEYS”
> when the region is key constrained/typed.  The reason why List would be
> used is to allow registering multiple keys at once.  Instead, we can add a
> new var arg API like registerInterest(T… keys).  This problem and solution
> was also documented in the ticket by the ticket creator (Kirk Lund)
> Thanks,
> -Jason

  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message