Class CacheEntryImplEx<K,V>
- java.lang.Object
-
- org.apache.ignite.internal.processors.cache.CacheEntryImpl<K,V>
-
- org.apache.ignite.internal.processors.cache.CacheEntryImplEx<K,V>
-
- All Implemented Interfaces:
Externalizable,Serializable,javax.cache.Cache.Entry<K,V>,CacheEntry<K,V>
public class CacheEntryImplEx<K,V> extends CacheEntryImpl<K,V> implements CacheEntry<K,V>
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description CacheEntryImplEx()Required byExternalizable.CacheEntryImplEx(K key, V val, GridCacheVersion ver)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidreadExternal(ObjectInput in)StringtoString()GridCacheVersionversion()Returns a comparable object representing the version of this cache entry.voidwriteExternal(ObjectOutput out)-
Methods inherited from class org.apache.ignite.internal.processors.cache.CacheEntryImpl
getKey, getValue, unwrap
-
-
-
-
Constructor Detail
-
CacheEntryImplEx
public CacheEntryImplEx()
Required byExternalizable.
-
CacheEntryImplEx
public CacheEntryImplEx(K key, V val, GridCacheVersion ver)
- Parameters:
key- Key.val- Value (always null).ver- Version.
-
-
Method Detail
-
version
public GridCacheVersion version()
Returns a comparable object representing the version of this cache entry.It is valid to compare cache entries' versions for the same key. In this case the latter update will be represented by a higher version. The result of versions comparison of cache entries of different keys is undefined.
- Specified by:
versionin interfaceCacheEntry<K,V>- Returns:
- Version of this cache entry.
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternalin interfaceExternalizable- Overrides:
writeExternalin classCacheEntryImpl<K,V>- Throws:
IOException
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternalin interfaceExternalizable- Overrides:
readExternalin classCacheEntryImpl<K,V>- Throws:
IOExceptionClassNotFoundException
-
toString
public String toString()
- Overrides:
toStringin classCacheEntryImpl<K,V>
-
-