Package stroom.query.common.v2
Interface SearchResponseCreatorCache
-
public interface SearchResponseCreatorCache
A self populating cache ofSearchResponseCreator
instances
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
SearchResponseCreatorCache.Key
-
Method Summary
Modifier and Type Method Description void
clear()
Clears all items from the cachevoid
evictExpiredElements()
SearchResponseCreator
get(SearchResponseCreatorCache.Key key)
void
remove(SearchResponseCreatorCache.Key key)
Remove an entry from the cache forSearchResponseCreatorCache.Key
key
-
-
-
Method Detail
-
get
SearchResponseCreator get(SearchResponseCreatorCache.Key key)
- Parameters:
key
- The key to read/create- Returns:
- Get a
SearchResponseCreator
from 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.Key
key
-
evictExpiredElements
void evictExpiredElements()
-
clear
void clear()
Clears all items from the cache
-
-