public class MetadataTransientMortalCacheValue extends MetadataMortalCacheValue implements MetadataAware
TransientMortalCacheValue that stores Metadata| Modifier and Type | Class and Description |
|---|---|
static class |
MetadataTransientMortalCacheValue.Externalizer |
internalMetadata, value| Modifier | Constructor and Description |
|---|---|
|
MetadataTransientMortalCacheValue(Object value,
Metadata metadata,
long created,
long lastUsed) |
protected |
MetadataTransientMortalCacheValue(Object value,
PrivateMetadata internalMetadata,
Metadata metadata,
long created,
long lastUsed) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
appendFieldsToString(StringBuilder builder) |
long |
getExpiryTime() |
long |
getLastUsed() |
long |
getMaxIdle() |
boolean |
isExpired(long now) |
boolean |
isMaxIdleExpirable() |
InternalCacheEntry<?,?> |
toInternalCacheEntry(Object key) |
canExpire, getCreated, getLifespan, getMetadata, setMetadataclone, equals, getInternalMetadata, getValue, hashCode, setInternalMetadata, setValue, toStringfinalize, getClass, notify, notifyAll, wait, wait, waitgetMetadata, setMetadatapublic MetadataTransientMortalCacheValue(Object value, Metadata metadata, long created, long lastUsed)
protected MetadataTransientMortalCacheValue(Object value, PrivateMetadata internalMetadata, Metadata metadata, long created, long lastUsed)
public InternalCacheEntry<?,?> toInternalCacheEntry(Object key)
toInternalCacheEntry in interface InternalCacheValuetoInternalCacheEntry in class MetadataMortalCacheValuepublic long getMaxIdle()
getMaxIdle in interface InternalCacheValuegetMaxIdle in class ImmortalCacheValuepublic long getLastUsed()
getLastUsed in interface InternalCacheValuegetLastUsed in class ImmortalCacheValuepublic boolean isExpired(long now)
isExpired in interface InternalCacheValueisExpired in class MetadataMortalCacheValuenow - the current time as expressed by System.currentTimeMillis()public boolean isMaxIdleExpirable()
isMaxIdleExpirable in interface InternalCacheValuepublic long getExpiryTime()
getExpiryTime in interface InternalCacheValuegetExpiryTime in class MetadataMortalCacheValueprotected void appendFieldsToString(StringBuilder builder)
appendFieldsToString in class MetadataMortalCacheValueCopyright © 2022 JBoss by Red Hat. All rights reserved.