public class MetadataTransientCacheValue extends ImmortalCacheValue implements MetadataAware
TransientCacheEntry which is MetadataAware| Modifier and Type | Class and Description |
|---|---|
static class |
MetadataTransientCacheValue.Externalizer |
internalMetadata, value| Modifier | Constructor and Description |
|---|---|
|
MetadataTransientCacheValue(Object value,
Metadata metadata,
long lastUsed) |
protected |
MetadataTransientCacheValue(Object value,
PrivateMetadata internalMetadata,
Metadata metadata,
long lastUsed) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendFieldsToString(StringBuilder builder) |
boolean |
canExpire() |
long |
getExpiryTime() |
long |
getLastUsed() |
long |
getMaxIdle() |
Metadata |
getMetadata()
Get metadata of this cache entry.
|
boolean |
isExpired(long now) |
boolean |
isMaxIdleExpirable() |
void |
setMetadata(Metadata metadata)
Set the metadata in the cache entry.
|
InternalCacheEntry<?,?> |
toInternalCacheEntry(Object key) |
clone, equals, getCreated, getInternalMetadata, getLifespan, getValue, hashCode, setInternalMetadata, setValue, toStringpublic MetadataTransientCacheValue(Object value, Metadata metadata, long lastUsed)
protected MetadataTransientCacheValue(Object value, PrivateMetadata internalMetadata, Metadata metadata, long lastUsed)
public InternalCacheEntry<?,?> toInternalCacheEntry(Object key)
toInternalCacheEntry in interface InternalCacheValuetoInternalCacheEntry in class ImmortalCacheValuepublic long getMaxIdle()
getMaxIdle in interface InternalCacheValuegetMaxIdle in class ImmortalCacheValuepublic long getLastUsed()
getLastUsed in interface InternalCacheValuegetLastUsed in class ImmortalCacheValuepublic final boolean isExpired(long now)
isExpired in interface InternalCacheValueisExpired in class ImmortalCacheValuenow - the current time as expressed by System.currentTimeMillis()public boolean canExpire()
canExpire in interface InternalCacheValuecanExpire in class ImmortalCacheValuepublic boolean isMaxIdleExpirable()
isMaxIdleExpirable in interface InternalCacheValuepublic 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 long getExpiryTime()
getExpiryTime in interface InternalCacheValuegetExpiryTime in class ImmortalCacheValueprotected void appendFieldsToString(StringBuilder builder)
appendFieldsToString in class ImmortalCacheValueCopyright © 2022 JBoss by Red Hat. All rights reserved.