Interface StatementCacheMBean

  • All Known Implementing Classes:
    StatementCache

    public interface StatementCacheMBean
    MBean interface for monitoring the statement cache.
    • 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