Interface InternalCacheInfo

    • Method Detail

      • getName

        String getName()
        Configured name of the cache or null if anonymous.
      • getImplementation

        String getImplementation()
      • getSize

        long getSize()
        Current number of entries in the cache. This may include entries with expired values.
      • getHeapCapacity

        long getHeapCapacity()
        Configured limit of the total cache entry capacity or -1 if weigher is used.
      • getMaximumWeight

        long getMaximumWeight()
        Configured maximum weight or -1 if entry capacity is used.
      • getTotalWeight

        long getTotalWeight()
        Current sum of entry weights as returned by the Weigher
      • getHeapHitCount

        long getHeapHitCount()
        Total counted hits on the heap cache data. The counter is increased when an entry is present in the cache, regardless whether the value is valid or not.
      • getGetCount

        long getGetCount()
        Number of cache operations, only access
      • getMissCount

        long getMissCount()
        A value was requested, either the entry is not present or the data was expired.
      • getNewEntryCount

        long getNewEntryCount()
        Number of created cache entries. Counter is increased for a load operation, put, etc. when the entry is not yet in the cache. A load operation always creates a new cache entry, even if the the expiry is immediately to block multiple loads. This counter is provided by the eviction implementation.
        See Also:
        EvictionMetrics.getNewEntryCount()
      • getLoadCount

        long getLoadCount()
        Successful loads including reloads and refresh.
      • getRefreshCount

        long getRefreshCount()
        Entry was loaded again, triggered by timer. The count includes all triggered and tried refresh actions, including those that produced and exception as result. A refresh is also counted as load in getLoadCount()
        See Also:
        CommonMetrics.getRefreshCount()
      • getInternalExceptionCount

        long getInternalExceptionCount()
        The cache produced an exception by itself that should have been prevented.
      • getRefreshRejectedCount

        long getRefreshRejectedCount()
        Entry was supposed to be refreshed, but there was no thread available for executing it.
        See Also:
        CommonMetrics.getRefreshRejectedCount()
      • getSuppressedExceptionCount

        long getSuppressedExceptionCount()
        Loader exception occurred, but the resilience policy decided to suppress the exception and continue to use the available value.
        See Also:
        CommonMetrics.getSuppressedExceptionCount()
      • getRefreshedHitCount

        long getRefreshedHitCount()
        A previously refreshed entry was accessed. The access is only counted once after a refresh operation, so the ration of refresh and refreshed hit is the efficiency of the refresh operation.
        See Also:
        CommonMetrics.getRefreshedHitCount()
      • getClearedEntriesCount

        long getClearedEntriesCount()
        Number of entries removed from the cache by the clear operation.
        See Also:
        Cache.clear()
      • getClearCount

        long getClearCount()
        Number of calls to clear this cache has received.
        See Also:
        Cache.clear()
      • getKeyMutationCount

        long getKeyMutationCount()
        After inserting into the cache the key object changed its hash code.
      • getHitRate

        double getHitRate()
        Hit rate of the cache
      • getHitRateString

        String getHitRateString()
        Hit rate of the cache in string representation
      • getMillisPerLoad

        double getMillisPerLoad()
        Average duration in milliseconds for each load operation.
      • isIntegrityFailure

        boolean isIntegrityFailure()
      • getFailedIntegrityChecks

        String getFailedIntegrityChecks()
      • getStartedTime

        Instant getStartedTime()
        Time when the cache started the operation.
      • getClearedTime

        Instant getClearedTime()
        Time of last clear operation.
      • getInfoCreatedTime

        Instant getInfoCreatedTime()
        Time when the info object was created. The information needs time to collect. Whenever statistics are requested, a new values may be collected or old values are used. The recency of the information can be determined by this value.
      • getEvictedWeight

        long getEvictedWeight()
      • getScanCount

        long getScanCount()