Class CacheStatistics

java.lang.Object
com.atlassian.jira.instrumentation.CacheStatistics
All Implemented Interfaces:
Statistics, Serializable

@ParametersAreNonnullByDefault public final class CacheStatistics extends Object implements Statistics
Represents instrumentation data for caches.
Since:
v7.1
See Also:
  • Field Details

  • Constructor Details

    • CacheStatistics

      public CacheStatistics(String name, List<String> tags, String type, long hits, long misses, double loadTime, Map<String,?> otherStats, long getTime, long putTime)
  • Method Details

    • getName

      public String getName()
      Specified by:
      getName in interface Statistics
    • getLoggingKey

      public String getLoggingKey()
      Specified by:
      getLoggingKey in interface Statistics
    • getTags

      public List<String> getTags()
      Specified by:
      getTags in interface Statistics
    • getStats

      public Object getStats()
      Specified by:
      getStats in interface Statistics
    • getStatsMap

      public Map<String,Object> getStatsMap()
    • type

      public String type()
      Returns:
      type of the cache.
    • hits

      public long hits()
      Returns:
      number of cache hits
    • misses

      public long misses()
      Returns:
      number of cache misises
    • loadTime

      public double loadTime()
      Returns:
      mean time spent on calls to loaders / suppliers that provides value in case of miss. In nanoseconds.
    • getTime

      public long getTime()
      Returns:
      mean time spent on cache get request. In nanoseconds.
    • putTime

      public long putTime()
      Returns:
      mean time spent on cache put request. In nanoseconds.