Interface InternalCache<K,​V>

    • Method Detail

      • getLog

        Log getLog()
        used from the cache manager
      • getKeyType

        org.cache2k.config.CacheType getKeyType()
      • getValueType

        org.cache2k.config.CacheType getValueType()
      • cancelTimerJobs

        void cancelTimerJobs()
        used from the cache manager for shutdown
      • getInfo

        InternalCacheInfo getInfo()
        Return cache statistic counters. This method is intended for regular statistics polling. No extensive locking is performed to extract a consistent set of counters.
      • getConsistentInfo

        InternalCacheInfo getConsistentInfo()
        Generate fresh statistics within a global cache lock. This version is used by internal consistency tests. This method is not intended to be called at high frequencies or for attaching monitoring or logging. Use the getInfo() method for requesting information for monitoring.
      • getEntryState

        String getEntryState​(K key)
      • logAndCountInternalException

        void logAndCountInternalException​(String s,
                                          Throwable t)
      • isNullValuePermitted

        boolean isNullValuePermitted()
      • getClock

        org.cache2k.operation.TimeReference getClock()
        Time reference for the cache.
      • isWeigherPresent

        boolean isWeigherPresent()
      • isLoaderPresent

        boolean isLoaderPresent()
      • getUserCache

        default org.cache2k.Cache<K,​V> getUserCache()
        Cache used by user, eventually wrapped. We only need to know our "wrapped self" in case events are send, so only implemented by WiredCache.
      • checkIntegrity

        void checkIntegrity()
        Cache checks its internal integrity. This is a expansive operation because it may traverse all cache entries. Used for testing.
        Throws:
        IllegalStateException - if integrity problem is found
      • getQualifiedName

        String getQualifiedName()