Interface StatementCacheMBean
-
- All Known Implementing Classes:
StatementCache
public interface StatementCacheMBeanMBean interface for monitoring the statement cache.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.concurrent.atomic.AtomicIntegergetCacheSize()Returns the current global cache size across all connections.intgetCacheSizePerConnection()Returns the cache size for the current connection.intgetMaxCacheSize()Returns the maximum size of the statement cache.booleanisCacheCallable()Checks if callable statements are being cached.booleanisCachePrepared()Checks if prepared statements are being cached.
-
-
-
Method Detail
-
isCachePrepared
boolean isCachePrepared()
Checks if prepared statements are being cached.- Returns:
- true if prepared statement caching is enabled
-
isCacheCallable
boolean isCacheCallable()
Checks if callable statements are being cached.- Returns:
- true if callable statement caching is enabled
-
getMaxCacheSize
int getMaxCacheSize()
Returns the maximum size of the statement cache.- Returns:
- maximum cache size
-
getCacheSize
java.util.concurrent.atomic.AtomicInteger getCacheSize()
Returns the current global cache size across all connections.- Returns:
- current cache size counter
-
getCacheSizePerConnection
int getCacheSizePerConnection()
Returns the cache size for the current connection.- Returns:
- number of cached statements for this connection
-
-