Class ConcurrentBoundedCache
java.lang.Object
com.j_spaces.jdbc.QueryCache
com.gigaspaces.internal.utils.collections.ConcurrentBoundedCache
Concurrent bounded cache. It uses a ConcurrentHashMap and a counter to set the upper bound to the
cache size. If one of the threads reaches the upperBound, the cache is cleared.
- Since:
- 10.1.0
- Version:
- 1.0
- Author:
- Boris
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddQueryToCache(String statement, Query query) voidclear()getQueryFromCache(String statement) Methods inherited from class com.j_spaces.jdbc.QueryCache
create
-
Constructor Details
-
ConcurrentBoundedCache
public ConcurrentBoundedCache(long upperBound, boolean warnWhenFull)
-
-
Method Details
-
addQueryToCache
- Specified by:
addQueryToCachein classQueryCache
-
getQueryFromCache
- Specified by:
getQueryFromCachein classQueryCache
-
clear
public void clear()- Specified by:
clearin classQueryCache
-