|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.omnifaces.component.output.cache.CacheEntry
public class CacheEntry
Meta data for a value that's stored in a cache. Can be used for cache implementations that don't support both validity and attributes natively. Cache implementations are not required to use this type.
Constructor Summary | |
---|---|
CacheEntry(java.lang.String value,
java.util.Date validTill)
|
Method Summary | |
---|---|
java.util.Map<java.lang.String,java.lang.Object> |
getAttributes()
Gets a map of attributes associated with this entry. |
java.util.Date |
getValidTill()
Returns the date that's the last moment in time the value obtained via getValue() is valid. |
java.lang.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(java.util.Date validTill)
Sets the date that's the last moment in time the value obtained via getValue() is valid. |
void |
setValue(java.lang.String value)
Sets the value for which this object is keeping meta data |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheEntry(java.lang.String value, java.util.Date validTill)
Method Detail |
---|
public java.lang.String getValue()
public void setValue(java.lang.String value)
value
- The value for which meta data is keptpublic java.util.Date getValidTill()
public void setValidTill(java.util.Date validTill)
validTill
- date indicating last moment value hold by this object is valid.public boolean isValid()
public java.util.Map<java.lang.String,java.lang.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.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |