public class LazyCacheEntryView<K,V> extends Object implements CacheEntryView<K,V>
CacheEntryView
for converting key and value to object when they are touched as lazy.Constructor and Description |
---|
LazyCacheEntryView(Object key,
Object value,
long creationTime,
long expirationTime,
long lastAccessTime,
long accessHit,
Object expiryPolicy) |
LazyCacheEntryView(Object key,
Object value,
long creationTime,
long expirationTime,
long lastAccessTime,
long accessHit,
Object expiryPolicy,
SerializationService serializationService) |
Modifier and Type | Method and Description |
---|---|
long |
getAccessHit()
Gets the count of how many time this cache entry has been accessed.
|
long |
getCreationTime()
Gets the creation time of this
EvictableEntryView in milliseconds. |
long |
getExpirationTime()
Gets the expiration time in milliseconds of the cache entry.
|
Object |
getExpiryPolicy()
Gets the expiry policy associated with this entry if there is one.
|
K |
getKey()
Gets the key of the cache entry.
|
long |
getLastAccessTime()
Gets the last access time in milliseconds of the cache entry.
|
V |
getValue()
Gets the value of the cache entry.
|
public LazyCacheEntryView(Object key, Object value, long creationTime, long expirationTime, long lastAccessTime, long accessHit, Object expiryPolicy)
public LazyCacheEntryView(Object key, Object value, long creationTime, long expirationTime, long lastAccessTime, long accessHit, Object expiryPolicy, SerializationService serializationService)
public K getKey()
CacheEntryView
getKey
in interface CacheEntryView<K,V>
getKey
in interface EvictableEntryView<K,V>
public V getValue()
CacheEntryView
getValue
in interface CacheEntryView<K,V>
getValue
in interface EvictableEntryView<K,V>
public Object getExpiryPolicy()
CacheEntryView
getExpiryPolicy
in interface CacheEntryView<K,V>
null
if there is nonepublic long getCreationTime()
EvictableEntryView
EvictableEntryView
in milliseconds.getCreationTime
in interface EvictableEntryView<K,V>
EvictableEntryView
in millisecondspublic long getExpirationTime()
CacheEntryView
getExpirationTime
in interface CacheEntryView<K,V>
public long getLastAccessTime()
CacheEntryView
getLastAccessTime
in interface CacheEntryView<K,V>
getLastAccessTime
in interface EvictableEntryView<K,V>
public long getAccessHit()
CacheEntryView
getAccessHit
in interface CacheEntryView<K,V>
getAccessHit
in interface EvictableEntryView<K,V>
Copyright © 2021 Hazelcast, Inc.. All Rights Reserved.