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, setValue
public InternalCacheEntry toInternalCacheEntry(Object key)
toInternalCacheEntry
in interface InternalCacheValue
toInternalCacheEntry
in class ImmortalCacheValue
public Metadata getMetadata()
MetadataAware
getMetadata
in interface InternalCacheValue
getMetadata
in interface MetadataAware
getMetadata
in class ImmortalCacheValue
public void setMetadata(Metadata metadata)
MetadataAware
setMetadata
in interface MetadataAware
metadata
- to apply to the cache entrypublic String toString()
toString
in class ImmortalCacheValue
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.