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
Nested Classes -
Field Summary
Fields inherited from class org.infinispan.container.entries.ImmortalCacheValue
internalMetadata, value -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedMetadataImmortalCacheValue(Object value, PrivateMetadata internalMetadata, Metadata metadata) MetadataImmortalCacheValue(Object value, Metadata metadata) -
Method Summary
Modifier and TypeMethodDescriptionprotected voidappendFieldsToString(StringBuilder builder) Get metadata of this cache entry.voidsetMetadata(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, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
toInternalCacheEntryin interfaceInternalCacheValue- Overrides:
toInternalCacheEntryin classImmortalCacheValue
-
getMetadata
Description copied from interface:MetadataAwareGet metadata of this cache entry.- Specified by:
getMetadatain interfaceInternalCacheValue- Specified by:
getMetadatain interfaceMetadataAware- Overrides:
getMetadatain classImmortalCacheValue- Returns:
- a Metadata instance
-
setMetadata
Description copied from interface:MetadataAwareSet the metadata in the cache entry.- Specified by:
setMetadatain interfaceMetadataAware- Parameters:
metadata- to apply to the cache entry
-
appendFieldsToString
- Overrides:
appendFieldsToStringin classImmortalCacheValue
-