[ https://issues.apache.org/jira/browse/IGNITE-946?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14679638#comment-14679638 ]
Denis Magda edited comment on IGNITE-946 at 8/10/15 7:31 AM: ------------------------------------------------------------- {{VersionedEntry}} exposes all the version related methods implemented in Ignite's private API - {{GridCacheVersion}}. {noformat} public interface VersionedEntry<K, V> extends Cache.Entry<K, V> { /** * Gets entry's topology version. * * @return Topology version plus number of seconds from the start time of the first grid node. */ public int topologyVersion(); /** * Gets entry's order. * * @return Version order. */ public long order(); /** * Gets entry's node order. * * @return Node order on which this version was assigned. */ public int nodeOrder(); /** * Gets entry's global time. * * @return Adjusted time. */ public long globalTime(); } {noformat} globalTime seems to be an equivalent to createTime. But updateTime is not supported at the core level - {{GridCacheVersion}} in immutable object. So please make sure you can't implement the same scenario with existed exposed getters. was (Author: dmagda): {{VersionedEntry}} exposes all the version related methods implemented in Ignite's private API - {{GridCacheVersion}}. {noformat} public interface VersionedEntry<K, V> extends Cache.Entry<K, V> { /** * Gets entry's topology version. * * @return Topology version plus number of seconds from the start time of the first grid node. */ public int topologyVersion(); /** * Gets entry's order. * * @return Version order. */ public long order(); /** * Gets entry's node order. * * @return Node order on which this version was assigned. */ public int nodeOrder(); /** * Gets entry's global time. * * @return Adjusted time. */ public long globalTime(); } {noformat} globalTime seems to be an equivalent to createTime. But updateTime is not supported at the core level. If there is real need for this and existed getters are not enough to achieve the same scenario then let me know. > Need to expose versioned cache entry to public API > -------------------------------------------------- > > Key: IGNITE-946 > URL: https://issues.apache.org/jira/browse/IGNITE-946 > Project: Ignite > Issue Type: Bug > Components: cache > Affects Versions: sprint-4 > Reporter: Valentin Kulichenko > Assignee: Denis Magda > Priority: Critical > Labels: Usability > Fix For: ignite-1.4 > > Attachments: ignite-946-2.patch, ignite-946.patch > > > Currently we have versioned entry, but it's not available on public API, but > knowing version can be useful in some cases. Need to make it accessible via > {{unwrap}} method. -- This message was sent by Atlassian JIRA (v6.3.4#6332)