public class MetadataImmortalCacheValue extends ImmortalCacheValue implements MetadataAware
ImmortalCacheValue that
is MetadataAware| Modifier and Type | Class and Description |
|---|---|
static class |
MetadataImmortalCacheValue.Externalizer |
value| Constructor and Description |
|---|
MetadataImmortalCacheValue(Object value,
Metadata metadata) |
| Modifier and Type | Method and Description |
|---|---|
Metadata |
getMetadata()
Get metadata of this cache entry.
|
void |
setMetadata(Metadata metadata)
Set the metadata in the cache entry.
|
InternalCacheEntry |
toInternalCacheEntry(Object key) |
String |
toString() |
canExpire, clone, equals, getCreated, getExpiryTime, getLastUsed, getLifespan, getMaxIdle, getValue, hashCode, isExpired, isExpired, setValuepublic InternalCacheEntry toInternalCacheEntry(Object key)
toInternalCacheEntry in interface InternalCacheValuetoInternalCacheEntry in class ImmortalCacheValuepublic Metadata getMetadata()
MetadataAwaregetMetadata in interface InternalCacheValuegetMetadata in interface MetadataAwaregetMetadata in class ImmortalCacheValuepublic void setMetadata(Metadata metadata)
MetadataAwaresetMetadata in interface MetadataAwaremetadata - to apply to the cache entrypublic String toString()
toString in class ImmortalCacheValueCopyright © 2024 JBoss, a division of Red Hat. All rights reserved.