Package stroom.query.common.v2
Interface SearchResponseCreatorCache
-
public interface SearchResponseCreatorCacheA self populating cache ofSearchResponseCreatorinstances
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classSearchResponseCreatorCache.Key
-
Method Summary
Modifier and Type Method Description voidclear()Clears all items from the cachevoidevictExpiredElements()SearchResponseCreatorget(SearchResponseCreatorCache.Key key)voidremove(SearchResponseCreatorCache.Key key)Remove an entry from the cache forSearchResponseCreatorCache.Keykey
-
-
-
Method Detail
-
get
SearchResponseCreator get(SearchResponseCreatorCache.Key key)
- Parameters:
key- The key to read/create- Returns:
- Get a
SearchResponseCreatorfrom the cache or create one and add it to the cache if it doesn't exist.
-
remove
void remove(SearchResponseCreatorCache.Key key)
Remove an entry from the cache forSearchResponseCreatorCache.Keykey
-
evictExpiredElements
void evictExpiredElements()
-
clear
void clear()
Clears all items from the cache
-
-