public class CacheEntry extends Object implements Serializable
Since OmniFaces 3.0 the Object value
and Map<String, Object> attributes
have been reworked to
Serializable value
and Map<String, Serializable> attributes
in order to explicitly set the expected type.
Constructor and Description |
---|
CacheEntry(Serializable value,
Date validTill) |
Modifier and Type | Method and Description |
---|---|
Map<String,Serializable> |
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.
|
Serializable |
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(Serializable value)
Sets the value for which this object is keeping meta data
|
public CacheEntry(Serializable value, Date validTill)
public Serializable getValue()
public void setValue(Serializable 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,Serializable> 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–2018 OmniFaces. All rights reserved.