public class CacheEntry extends Object implements Serializable
Constructor and Description |
---|
CacheEntry(String value,
Date validTill) |
Modifier and Type | Method and Description |
---|---|
Map<String,Object> |
getAttributes()
Gets a map of attributes associated with this entry.
|
Date |
getValidTill()
Returns the date that's the last moment in time the value obtained via getValue() is valid.
|
String |
getValue()
Returns the value for which this object is keeping meta data
|
boolean |
isValid()
Returns whether this entry holds a valid value.
|
void |
setValidTill(Date validTill)
Sets the date that's the last moment in time the value obtained via getValue() is valid.
|
void |
setValue(String value)
Sets the value for which this object is keeping meta data
|
public String getValue()
public void setValue(String value)
value
- The value for which meta data is keptpublic Date getValidTill()
public void setValidTill(Date validTill)
validTill
- date indicating last moment value hold by this object is valid.public boolean isValid()
public Map<String,Object> getAttributes()
Attributes are general key,value pairs, that are currently mainly used to store the result of EL expressions that appear in the rendering represented by the main value this entry represents.