public class ImmortalCacheValue extends Object implements InternalCacheValue, Cloneable
ImmortalCacheEntry
Modifier and Type | Class and Description |
---|---|
static class |
ImmortalCacheValue.Externalizer |
Constructor and Description |
---|
ImmortalCacheValue(Object value) |
Modifier and Type | Method and Description |
---|---|
boolean |
canExpire() |
ImmortalCacheValue |
clone() |
boolean |
equals(Object o) |
long |
getCreated() |
long |
getExpiryTime() |
long |
getLastUsed() |
long |
getLifespan() |
long |
getMaxIdle() |
Metadata |
getMetadata() |
Object |
getValue() |
int |
hashCode() |
boolean |
isExpired() |
boolean |
isExpired(long now) |
Object |
setValue(Object value) |
InternalCacheEntry |
toInternalCacheEntry(Object key) |
String |
toString() |
public Object value
public ImmortalCacheValue(Object value)
public InternalCacheEntry toInternalCacheEntry(Object key)
toInternalCacheEntry
in interface InternalCacheValue
public Object getValue()
getValue
in interface InternalCacheValue
public boolean isExpired(long now)
isExpired
in interface InternalCacheValue
now
- the current time as expressed by System.currentTimeMillis()
public boolean isExpired()
isExpired
in interface InternalCacheValue
public boolean canExpire()
canExpire
in interface InternalCacheValue
public long getCreated()
getCreated
in interface InternalCacheValue
public long getLastUsed()
getLastUsed
in interface InternalCacheValue
public long getLifespan()
getLifespan
in interface InternalCacheValue
public long getMaxIdle()
getMaxIdle
in interface InternalCacheValue
public long getExpiryTime()
getExpiryTime
in interface InternalCacheValue
public Metadata getMetadata()
getMetadata
in interface InternalCacheValue
public ImmortalCacheValue clone()
Copyright © 2014 JBoss, a division of Red Hat. All Rights Reserved.