[ https://issues.apache.org/jira/browse/GEODE-6505?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16793331#comment-16793331 ]
ASF subversion and git services commented on GEODE-6505: -------------------------------------------------------- Commit 957574d7fdb4b6ab8fb6a1aead4d7ca1476bdbc9 in geode's branch refs/heads/feature/GEODE-6518 from Peter Tran [ https://gitbox.apache.org/repos/asf?p=geode.git;h=957574d ] GEODE-6505: Use Enum instead of String for RegionConfig type (#3287) Co-authored-by: Jinmei Liao <jil...@pivotal.io> Co-authored-by: Peter Tran <pt...@pivotal.io> Co-authored-by: Owen Nichols <onich...@pivotal.io> > pre-defined type for JAVA api(java client, geode client, server side) to > avoid developer typo > --------------------------------------------------------------------------------------------- > > Key: GEODE-6505 > URL: https://issues.apache.org/jira/browse/GEODE-6505 > Project: Geode > Issue Type: Improvement > Reporter: Peter Tran > Priority: Major > Time Spent: 2.5h > Remaining Estimate: 0h > > ### Why > for the java developer , especially for newbie of gemfire/geode, it is > confused to get exact correct type of region. > **As Java developer** > **I want ** there is a pre-defined region type, such as constant interface, > enum or other. > **So that ** I can refer it and pass it as a parameter in my code more easier. > ### Acceptance Criteria > ```gherkin > Scenario: auto-complete like functionality > Given I am creating a region via the RegionConfig class > When I use the method .setType() > Then there is a pre-defined region type for me to choose from with one of the > following options (see setShortcutAttributes on RegionConfig.class) > LOCAL,LOCAL_HEAP_LRU,LOCAL_OVERFLOW,LOCAL_PERSISTENT,LOCAL_PERSISTENT_OVERFLOW,PARTITION,PARTITION_HEAP_LRU,PARTITION_OVERFLOW,PARTITION_PERSISTENT,PARTITION_PERSISTENT_OVERFLOW,PARTITION_PROXY,PARTITION_PROXY_REDUNDANT,PARTITION_REDUNDANT,PARTITION_REDUNDANT_HEAP_LRU,PARTITION_REDUNDANT_OVERFLOW,PARTITION_REDUNDANT_PERSISTENT,PARTITION_REDUNDANT_PERSISTENT_OVERFLOW,REPLICATE,REPLICATE_HEAP_LRU,REPLICATE_OVERFLOW,REPLICATE_PERSISTENT,REPLICATE_PERSISTENT_OVERFLOW,REPLICATE_PROXY > AND an example usage is provided on the wiki > ``` > ```gherkin > Scenario: Wiki > Given I am looking at our wiki page > When I review the example code for create region > Then I am able to see all of the possible region types and how to properly > specify each. > ``` > **Notes:** -- This message was sent by Atlassian JIRA (v7.6.3#76005)