You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Jacob Barrett (Jira)" <ji...@apache.org> on 2021/11/25 00:18:00 UTC

[jira] [Created] (GEODE-9851) Use strongly typed enums rather than int for enumeration like values.

Jacob Barrett created GEODE-9851:
------------------------------------

             Summary: Use strongly typed enums rather than int for enumeration like values.
                 Key: GEODE-9851
                 URL: https://issues.apache.org/jira/browse/GEODE-9851
             Project: Geode
          Issue Type: Improvement
            Reporter: Jacob Barrett


Internally register interest has both an interest policy and data storage policy that it passes around as `int`. Since these values are finite and have well defined values it makes sense to pass them as proper Java enums. Strongly typing them provides compile time checks on acceptable values and makes the code more readable. 



--
This message was sent by Atlassian Jira
(v8.20.1#820001)