|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.arsdigita.search.TimedResultCache
Implements a timed-expiry result set cache.
| Constructor Summary | |
TimedResultCache(int count,
long size,
long maxAge)
Create a new result cache with room for 'size' entries, valid for a specified maximum age. |
|
| Method Summary | |
ResultSet |
get(QuerySpecification query)
Retrieves a result set from the cache |
void |
put(QuerySpecification query,
ResultSet results)
Stores a result set in the cache |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TimedResultCache(int count,
long size,
long maxAge)
count - number of documents per result set to cachesize - max entries to cachemaxAge - maximum age in milliseconds| Method Detail |
public void put(QuerySpecification query,
ResultSet results)
put in interface ResultCachequery - the query to store results forresults - the results to cachepublic ResultSet get(QuerySpecification query)
get in interface ResultCachequery - the query to get results for
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||