|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A Map like interface to store IChunk
s.
Method Summary | |
IChunk |
get(IQuery theQuery)
|
IStaleChunkRule |
getStaleChunkRule()
|
IChunk |
put(IQuery theQuery,
VolatilityEnum theVolatility,
CacheReasonEnum[] theReasons)
Places a IChunk corresponding to the specified IQuery
in this IChunkStore . |
IChunk |
remove(IQuery theQuery)
Removes the mapping for this query from this IChunkStore if it is present |
Method Detail |
public IChunk get(IQuery theQuery)
theQuery
- The specified query.
IChunkStore
maps the specified query, or
null if the IChunkStore
contains no mapping for the query.public IChunk put(IQuery theQuery, VolatilityEnum theVolatility, CacheReasonEnum[] theReasons)
IChunk
corresponding to the specified IQuery
in this IChunkStore
. If the IChunkStore
previously contained
a mapping for this query, the value is replaced by a new IChunk
with the new volatility
and reasons.
theQuery
- Query with which the chunk is to be associated.theVolatility
- The volatility that will decide the length of stay in the cache. If there
is a mapping for this query currently in the cache, this will replace the old value.theReasons
- The reasons that this chunk was cached. If there is a mapping for this query
currently in the cache, this will be appended to the old value.
public IChunk remove(IQuery theQuery)
IChunkStore
if it is present
theQuery
- Query whose mapping is to be removed from the IChunkStore
.
public IStaleChunkRule getStaleChunkRule()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |