com.ibm.commerce.registry

Interface ManagedDynamicCache

    • Field Summary

      Fields 
      Modifier and Type Field and Description
      static java.lang.String COPYRIGHT
      IBM copyright notice field.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method and Description
      int getCacheSize()
      This method returns the total number of cache entries.
      long getEvictions()
      This method returns the number of entries that have been removed from the cache by an LRU (least recently used) algorithm.
      long getHits()
      This method returns the number of cache hits.
      long getMisses()
      This method returns the number of cache misses.
      int getUsedCacheSize()
      This method returns the number of currently contained cache entries.
      void setInitialCapacity(int initialCapacity)
      This method sets the initial capacity of the registry.
    • Field Detail

      • COPYRIGHT

        static final java.lang.String COPYRIGHT
        IBM copyright notice field.
        See Also:
        Constant Field Values
    • Method Detail

      • getMisses

        long getMisses()
        This method returns the number of cache misses.
        Returns:
        The number of cache misses.
      • getEvictions

        long getEvictions()
        This method returns the number of entries that have been removed from the cache by an LRU (least recently used) algorithm.
        Returns:
        The number of entries that have been removed from the cache.
      • getHits

        long getHits()
        This method returns the number of cache hits.
        Returns:
        The number of cache hits.
      • getCacheSize

        int getCacheSize()
        This method returns the total number of cache entries.
        Returns:
        The maximum size of the cache.
      • getUsedCacheSize

        int getUsedCacheSize()
        This method returns the number of currently contained cache entries.
        Returns:
        The number of currently used cache entries.
      • setInitialCapacity

        void setInitialCapacity(int initialCapacity)
        This method sets the initial capacity of the registry.
        Parameters:
        The - initial capacity of the registry.