public class MetadataTransientMortalCacheValue extends MetadataMortalCacheValue implements MetadataAware
TransientMortalCacheValue
that is Versioned
Modifier and Type | Class and Description |
---|---|
static class |
MetadataTransientMortalCacheValue.Externalizer |
value
Constructor and Description |
---|
MetadataTransientMortalCacheValue(Object v,
Metadata metadata,
long created,
long lastUsed) |
Modifier and Type | Method and Description |
---|---|
long |
getExpiryTime() |
long |
getLastUsed() |
long |
getMaxIdle() |
boolean |
isExpired() |
boolean |
isExpired(long now) |
InternalCacheEntry |
toInternalCacheEntry(Object key) |
canExpire, getCreated, getLifespan, getMetadata, setMetadata
clone, equals, getValue, hashCode, setValue, toString
finalize, getClass, notify, notifyAll, wait, wait, wait
getMetadata, setMetadata
public InternalCacheEntry toInternalCacheEntry(Object key)
toInternalCacheEntry
in interface InternalCacheValue
toInternalCacheEntry
in class MetadataMortalCacheValue
public long getMaxIdle()
getMaxIdle
in interface InternalCacheValue
getMaxIdle
in class ImmortalCacheValue
public long getLastUsed()
getLastUsed
in interface InternalCacheValue
getLastUsed
in class ImmortalCacheValue
public boolean isExpired(long now)
isExpired
in interface InternalCacheValue
isExpired
in class MetadataMortalCacheValue
now
- the current time as expressed by System.currentTimeMillis()
public boolean isExpired()
isExpired
in interface InternalCacheValue
isExpired
in class MetadataMortalCacheValue
public long getExpiryTime()
getExpiryTime
in interface InternalCacheValue
getExpiryTime
in class MetadataMortalCacheValue
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.