|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.hibernate.search.filter.MRUFilterCachingStrategy
public class MRUFilterCachingStrategy
Keep the most recently used Filters in the cache
The cache is at least as big as hibernate.search.filter.cache_strategy.size
Above this limit, Filters are kept as soft references
Constructor Summary | |
---|---|
MRUFilterCachingStrategy()
|
Method Summary | |
---|---|
void |
addCachedFilter(FilterKey key,
Filter filter)
Propose a candidate filter for caching |
Filter |
getCachedFilter(FilterKey key)
Retrieve the cached filter for a given key or null if not cached |
void |
initialize(Properties properties)
initialize the strategy from the properties The Properties must not be changed |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MRUFilterCachingStrategy()
Method Detail |
---|
public void initialize(Properties properties)
FilterCachingStrategy
initialize
in interface FilterCachingStrategy
public Filter getCachedFilter(FilterKey key)
FilterCachingStrategy
getCachedFilter
in interface FilterCachingStrategy
public void addCachedFilter(FilterKey key, Filter filter)
FilterCachingStrategy
addCachedFilter
in interface FilterCachingStrategy
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |