Class DefaultJdbiCacheStats


  • public final class DefaultJdbiCacheStats
    extends java.lang.Object
    Simple statistics for an DefaultJdbiCache instance. The values in this object are a snapshot of the cache status. Calling any method multiple times is cheap and constant time.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private int cacheSize  
      private int maxSize  
    • Constructor Summary

      Constructors 
      Constructor Description
      DefaultJdbiCacheStats​(int cacheSize, int maxSize)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int cacheSize()
      Returns the current size of the cache.
      int maxSize()
      Returns the maximum size of the cache.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • cacheSize

        private final int cacheSize
      • maxSize

        private final int maxSize
    • Constructor Detail

      • DefaultJdbiCacheStats

        DefaultJdbiCacheStats​(int cacheSize,
                              int maxSize)
    • Method Detail

      • cacheSize

        public int cacheSize()
        Returns the current size of the cache.
        Returns:
        The current size of the cache.
      • maxSize

        public int maxSize()
        Returns the maximum size of the cache.
        Returns:
        The maximum size of the cache.