You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@geode.apache.org by "Darrel Schneider (JIRA)" <ji...@apache.org> on 2017/05/09 00:02:04 UTC
[jira] [Commented] (GEODE-2894) Review getEntry on Region
[ https://issues.apache.org/jira/browse/GEODE-2894?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16001822#comment-16001822 ]
Darrel Schneider commented on GEODE-2894:
-----------------------------------------
Except for partitioned regions getEntry always returns a Region.Entry the describes the local, in process, cache state.
Region.Entry has an "isLocal" method with these javadocs:
{noformat}
/**
* This method checks to see if the entry is in the in-process cache, or is in another process.
* Only Regions with {@link DataPolicy#PARTITION} may return false in response to this query. A
* non-local Entry will not reflect dynamic changes being made to the cache. For instance, the
* result of getValue() will not change, even though the cache may have been updated for the
* corresponding key. To see an updated snapshot of a non-local Entry, you must fetch the entry
* from the Region again.
*/
public boolean isLocal();
{noformat}
> Review getEntry on Region
> -------------------------
>
> Key: GEODE-2894
> URL: https://issues.apache.org/jira/browse/GEODE-2894
> Project: Geode
> Issue Type: Sub-task
> Components: regions
> Reporter: Fred Krone
>
> This needs to behave the same as .get()
> For example, on a RegionAttributeShortcut.PROXY
> .put will put on the server ...
> but currently .entry is local only and will return null
> .get will go to the server and get the value
> ACCEPTANCE
> WHEN Region.put(Object o) is used Region.get or Region.getEntry should return as .get would
--
This message was sent by Atlassian JIRA
(v6.3.15#6346)