public class CacheEntry extends Object implements Serializable
Constructor and Description |
---|
CacheEntry(Object 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.
|
Object |
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(Object value)
Sets the value for which this object is keeping meta data
|
public Object getValue()
public void setValue(Object 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.
Copyright © 2012–2017 OmniFaces. All rights reserved.