You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@geode.apache.org by "Peter Tran (JIRA)" <ji...@apache.org> on 2019/03/11 18:31:00 UTC
[jira] [Created] (GEODE-6505) pre-defined type for JAVA api(java
client, geode client, server side) to avoid developer typo
Peter Tran created GEODE-6505:
---------------------------------
Summary: 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
### 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)