Class MetadataTransientMortalCacheValue
- java.lang.Object
-
- org.infinispan.container.entries.ImmortalCacheValue
-
- org.infinispan.container.entries.metadata.MetadataMortalCacheValue
-
- org.infinispan.container.entries.metadata.MetadataTransientMortalCacheValue
-
- All Implemented Interfaces:
Cloneable,InternalCacheValue,MetadataAware
public class MetadataTransientMortalCacheValue extends MetadataMortalCacheValue implements MetadataAware
A form ofTransientMortalCacheValuethat isVersioned- Since:
- 5.1
- Author:
- Manik Surtani
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetadataTransientMortalCacheValue.Externalizer
-
Field Summary
-
Fields inherited from class org.infinispan.container.entries.ImmortalCacheValue
value
-
-
Constructor Summary
Constructors Constructor Description MetadataTransientMortalCacheValue(Object v, Metadata metadata, long created, long lastUsed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description longgetExpiryTime()longgetLastUsed()longgetMaxIdle()booleanisExpired()booleanisExpired(long now)booleanisMaxIdleExpirable()InternalCacheEntrytoInternalCacheEntry(Object key)-
Methods inherited from class org.infinispan.container.entries.metadata.MetadataMortalCacheValue
canExpire, getCreated, getLifespan, getMetadata, setMetadata
-
Methods inherited from class org.infinispan.container.entries.ImmortalCacheValue
clone, equals, getValue, hashCode, setValue, toString
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.container.entries.metadata.MetadataAware
getMetadata, setMetadata
-
-
-
-
Method Detail
-
toInternalCacheEntry
public InternalCacheEntry toInternalCacheEntry(Object key)
- Specified by:
toInternalCacheEntryin interfaceInternalCacheValue- Overrides:
toInternalCacheEntryin classMetadataMortalCacheValue
-
getMaxIdle
public long getMaxIdle()
- Specified by:
getMaxIdlein interfaceInternalCacheValue- Overrides:
getMaxIdlein classImmortalCacheValue- Returns:
- max idle time allowed
-
getLastUsed
public long getLastUsed()
- Specified by:
getLastUsedin interfaceInternalCacheValue- Overrides:
getLastUsedin classImmortalCacheValue- Returns:
- timestamp when the entry was last used
-
isExpired
public boolean isExpired(long now)
- Specified by:
isExpiredin interfaceInternalCacheValue- Overrides:
isExpiredin classMetadataMortalCacheValue- Parameters:
now- the current time as expressed bySystem.currentTimeMillis()- Returns:
- true if the entry has expired; false otherwise
-
isExpired
public boolean isExpired()
- Specified by:
isExpiredin interfaceInternalCacheValue- Overrides:
isExpiredin classMetadataMortalCacheValue- Returns:
- true if the entry has expired; false otherwise
-
isMaxIdleExpirable
public boolean isMaxIdleExpirable()
- Specified by:
isMaxIdleExpirablein interfaceInternalCacheValue- Returns:
- true if this entry can expire via max idle, false otherwise
-
getExpiryTime
public long getExpiryTime()
- Specified by:
getExpiryTimein interfaceInternalCacheValue- Overrides:
getExpiryTimein classMetadataMortalCacheValue
-
-