|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.modeshape.graph.request.Request
org.modeshape.graph.request.CacheableRequest
@ThreadSafe public abstract class CacheableRequest
A request that contains results that may be cached.
Constructor Summary | |
---|---|
CacheableRequest()
|
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. |
void |
setTimeLoaded(DateTime timeLoaded)
|
Methods inherited from class org.modeshape.graph.request.Request |
---|
cancel, checkNotFrozen, freeze, getError, getType, hasError, isCancelled, isFrozen, isReadOnly, printable, printable, setError, setLatchForFreezing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CacheableRequest()
Method Detail |
---|
public 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.
getCachePolicy
in interface Cacheable
Cacheable.getCachePolicy()
public DateTime getTimeLoaded()
getTimeLoaded
in interface Cacheable
Cacheable.getTimeLoaded()
public void setCachePolicy(CachePolicy cachePolicy)
setCachePolicy
in interface Cacheable
cachePolicy
- the caching policy to use for this object
IllegalStateException
- if the request is frozenCacheable.setCachePolicy(org.modeshape.graph.cache.CachePolicy)
public void setTimeLoaded(DateTime timeLoaded)
timeLoaded
- Sets timeLoaded to the specified value.
IllegalStateException
- if the request is frozen
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |