Class MetadataImmortalCacheValue
java.lang.Object
org.infinispan.container.entries.ImmortalCacheValue
org.infinispan.container.entries.metadata.MetadataImmortalCacheValue
- All Implemented Interfaces:
Cloneable
,InternalCacheValue
,MetadataAware
A form of
ImmortalCacheValue
that is MetadataAware
.- Since:
- 5.3
- Author:
- Galder ZamarreƱo
-
Nested Class Summary
-
Field Summary
Fields inherited from class org.infinispan.container.entries.ImmortalCacheValue
internalMetadata, value
-
Constructor Summary
ModifierConstructorDescriptionprotected
MetadataImmortalCacheValue
(Object value, PrivateMetadata internalMetadata, Metadata metadata) MetadataImmortalCacheValue
(Object value, Metadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionprotected void
appendFieldsToString
(StringBuilder builder) Get metadata of this cache entry.void
setMetadata
(Metadata metadata) Set the metadata in the cache entry.InternalCacheEntry<?,
?> Methods inherited from class org.infinispan.container.entries.ImmortalCacheValue
canExpire, clone, equals, getCreated, getExpiryTime, getInternalMetadata, getLastUsed, getLifespan, getMaxIdle, getValue, hashCode, isExpired, setInternalMetadata, setValue, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface org.infinispan.container.entries.InternalCacheValue
isMaxIdleExpirable
-
Constructor Details
-
MetadataImmortalCacheValue
-
MetadataImmortalCacheValue
protected MetadataImmortalCacheValue(Object value, PrivateMetadata internalMetadata, Metadata metadata)
-
-
Method Details
-
toInternalCacheEntry
- Specified by:
toInternalCacheEntry
in interfaceInternalCacheValue
- Overrides:
toInternalCacheEntry
in classImmortalCacheValue
-
getMetadata
Description copied from interface:MetadataAware
Get metadata of this cache entry.- Specified by:
getMetadata
in interfaceInternalCacheValue
- Specified by:
getMetadata
in interfaceMetadataAware
- Overrides:
getMetadata
in classImmortalCacheValue
- Returns:
- a Metadata instance
-
setMetadata
Description copied from interface:MetadataAware
Set the metadata in the cache entry.- Specified by:
setMetadata
in interfaceMetadataAware
- Parameters:
metadata
- to apply to the cache entry
-
appendFieldsToString
- Overrides:
appendFieldsToString
in classImmortalCacheValue
-