public interface

CacheStatistics

org.apache.archiva.redback.components.cache.CacheStatistics
Known Indirect Subclasses

Class Overview

CacheStatistics

Summary

Public Methods
abstract void clear()
Clear the statistics of the cache.
abstract double getCacheHitRate()
Compute for the efficiency of this cache.
abstract long getCacheHits()
Return the number of hits to content present in the cache.
abstract long getCacheMiss()
Return the number of hits to keys that are not (yet) in the cache.
abstract long getInMemorySize()
return the memory used by the cache in memory can be not implemented by some caches implementation
abstract long getSize()
Return the size (items number) of the current cache.

Public Methods

public abstract void clear ()

Clear the statistics of the cache.

public abstract double getCacheHitRate ()

Compute for the efficiency of this cache.

Returns
  • the ratio of cache hits to the cache misses to queries for cache objects

public abstract long getCacheHits ()

Return the number of hits to content present in the cache.

Returns
  • the number of hits to content present in the cache.

public abstract long getCacheMiss ()

Return the number of hits to keys that are not (yet) in the cache.

Returns
  • the number of requests for content missing from the cache.

public abstract long getInMemorySize ()

return the memory used by the cache in memory can be not implemented by some caches implementation

public abstract long getSize ()

Return the size (items number) of the current cache.

Returns
  • the size (items number) of the current cache.