|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
TODO: this should extend IDataSource, not ISemanticCache.
An extension of ISemanticCache
that allows a caller to express
that queries to a certain data scope are likely in the near future. This allows
the cache to (optionally) retrieve this information in advance.
Method Summary | |
void |
claimInterest(IQuery theScope,
java.util.Date theEffectiveTime,
java.util.Date theExpiryTime,
java.lang.String theContextId)
Indicates that queries within the specified data scope are likely in the near future. |
void |
disclaimInterest(java.util.Date theEffectiveTime,
java.lang.String theContextId)
Explicitly indicates that a previously claimed interest in some scope of data is at an end. |
Methods inherited from interface ca.uhn.cache.ISemanticCache |
get, getEarliestCacheTime, put, remainder, update |
Method Detail |
public void claimInterest(IQuery theScope, java.util.Date theEffectiveTime, java.util.Date theExpiryTime, java.lang.String theContextId)
theScope
- defines the scope of anticipated queriestheEffectiveTime
- the time at which such queries may begintheExpiryTime
- the time at which such queries are likely to be finishedtheContextId
- a unique identifier for the caller or context, so that
calls to disclaimInterest() can be related to calls to this method (for
example if two users claim an interest in the same data we don't want to
remove the data from cache until they both disclaim their interest).public void disclaimInterest(java.util.Date theEffectiveTime, java.lang.String theContextId)
theEffectiveTime
- the time at which the interest is to expiretheContextId
- a unique identifier that was provided in a corresponding call
to claimInterest()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |