Class AbstractQueryCache.Default<T>

  • All Implemented Interfaces:
    java.io.Serializable, QueryStatistics<T>
    Enclosing class:
    AbstractQueryCache

    public static class AbstractQueryCache.Default<T>
    extends java.lang.Object
    implements QueryStatistics<T>
    A default implementation of query statistics for the Query result cache. Maintains statistics for only a fixed number of queries. Statistical counts are approximate and not exact (to keep thread synchorization overhead low).
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      Default()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void clear()
      Clears all statistics accumulated since start.
      void dump​(java.io.PrintStream out)
      Dumps on the given output stream.
      long getEvictionCount()
      Gets number of total query evictions since last reset.
      long getExecutionCount()
      Gets number of total query execution since last reset.
      long getExecutionCount​(T query)
      Gets number of executions for the given query since last reset.
      long getHitCount()
      Gets number of total query execution that are cached since last reset.
      long getHitCount​(T query)
      Gets number of executions for the given query that are cached since last reset.
      long getTotalEvictionCount()
      Gets number of total query evictions since start.
      long getTotalExecutionCount()
      Gets number of total query execution since start.
      long getTotalExecutionCount​(T query)
      Gets number of executions for the given query since start.
      long getTotalHitCount()
      Gets number of total query execution that are cached since start.
      long getTotalHitCount​(T query)
      Gets number of executions for the given query that are cached since start.
      java.util.Set<T> keys()
      Gets all the identifier keys for the cached queries.
      void recordEviction​(T query)
      Record that the given query has been evicted.
      void recordExecution​(T query)
      Record that the given query has been executed.
      void recordHit​(T query)  
      void reset()
      Clears all statistics accumulated since last reset.
      java.util.Date since()
      Gets the time of last reset.
      java.util.Date start()
      Gets the time of start.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait