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 of
TransientMortalCacheValue that stores Metadata- Since:
- 5.1
- Author:
- Manik Surtani
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.infinispan.container.entries.ImmortalCacheValue
internalMetadata, value -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMetadataTransientMortalCacheValue(Object value, PrivateMetadata internalMetadata, Metadata metadata, long created, long lastUsed) MetadataTransientMortalCacheValue(Object value, Metadata metadata, long created, long lastUsed) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendFieldsToString(StringBuilder builder) longlonglongbooleanisExpired(long now) booleanInternalCacheEntry<?,?> Methods inherited from class org.infinispan.container.entries.metadata.MetadataMortalCacheValue
canExpire, getCreated, getLifespan, getMetadata, setMetadataMethods inherited from class org.infinispan.container.entries.ImmortalCacheValue
clone, equals, getInternalMetadata, getValue, hashCode, setInternalMetadata, setValue, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.infinispan.container.entries.metadata.MetadataAware
getMetadata, setMetadata
-
Constructor Details
-
MetadataTransientMortalCacheValue
-
MetadataTransientMortalCacheValue
protected MetadataTransientMortalCacheValue(Object value, PrivateMetadata internalMetadata, Metadata metadata, long created, long lastUsed)
-
-
Method Details
-
toInternalCacheEntry
- 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
-
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
-
appendFieldsToString
- Overrides:
appendFieldsToStringin classMetadataMortalCacheValue
-