Class MetadataImmortalCacheValue
- java.lang.Object
-
- org.infinispan.container.entries.ImmortalCacheValue
-
- org.infinispan.container.entries.metadata.MetadataImmortalCacheValue
-
- All Implemented Interfaces:
Cloneable,InternalCacheValue,MetadataAware
public class MetadataImmortalCacheValue extends ImmortalCacheValue implements MetadataAware
A form ofImmortalCacheValuethat isMetadataAware- Since:
- 5.3
- Author:
- Galder ZamarreƱo
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMetadataImmortalCacheValue.Externalizer
-
Field Summary
-
Fields inherited from class org.infinispan.container.entries.ImmortalCacheValue
value
-
-
Constructor Summary
Constructors Constructor Description MetadataImmortalCacheValue(Object value, Metadata metadata)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description MetadatagetMetadata()Get metadata of this cache entry.voidsetMetadata(Metadata metadata)Set the metadata in the cache entry.InternalCacheEntrytoInternalCacheEntry(Object key)StringtoString()-
Methods inherited from class org.infinispan.container.entries.ImmortalCacheValue
canExpire, clone, equals, getCreated, getExpiryTime, getLastUsed, getLifespan, getMaxIdle, getValue, hashCode, isExpired, isExpired, setValue
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.infinispan.container.entries.InternalCacheValue
isMaxIdleExpirable
-
-
-
-
Method Detail
-
toInternalCacheEntry
public InternalCacheEntry toInternalCacheEntry(Object key)
- Specified by:
toInternalCacheEntryin interfaceInternalCacheValue- Overrides:
toInternalCacheEntryin classImmortalCacheValue
-
getMetadata
public Metadata 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
public void setMetadata(Metadata metadata)
Description copied from interface:MetadataAwareSet the metadata in the cache entry.- Specified by:
setMetadatain interfaceMetadataAware- Parameters:
metadata- to apply to the cache entry
-
toString
public String toString()
- Overrides:
toStringin classImmortalCacheValue
-
-