|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Cacheable
Interface defining an object that can be cached according to a CachePolicy
.
Method Summary | |
---|---|
CachePolicy |
getCachePolicy()
Get the caching policy to be used for this object. |
DateTime |
getTimeLoaded()
Get the time that this node data was originally loaded. |
void |
setCachePolicy(CachePolicy cachePolicy)
Set the caching policy for this object. |
Method Detail |
---|
DateTime getTimeLoaded()
CachePolicy getCachePolicy()
Note that the values of the policy are relative to the time the node was loaded
, so the same
instance can be used for many nodes.
void setCachePolicy(CachePolicy cachePolicy)
cachePolicy
- the caching policy to use for this object
IllegalArgumentException
- if the cachePolicy is null
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |