Class AbstractQueryCacheInstrument

    • Field Detail

      • NO_STATS

        public static final long NO_STATS
        Value indicating that cache statistics are not available.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractQueryCacheInstrument

        public AbstractQueryCacheInstrument()
    • Method Detail

      • setQueryCache

        public void setQueryCache​(QueryCache qc)
      • setConfigId

        public void setConfigId​(java.lang.String cid)
      • setContextRef

        public void setContextRef​(java.lang.String cref)
      • getConfigId

        public java.lang.String getConfigId()
      • getContextRef

        public java.lang.String getContextRef()
      • setPreparedQueryCache

        public void setPreparedQueryCache​(QueryCache qc)
      • getExecutionCount

        public long getExecutionCount​(java.lang.String queryKey)
        Description copied from interface: QueryCacheInstrument
        Returns number of total execution requests since last reset for the specified string-ified query key.
        Specified by:
        getExecutionCount in interface QueryCacheInstrument
      • getTotalExecutionCount

        public long getTotalExecutionCount​(java.lang.String queryKey)
        Description copied from interface: QueryCacheInstrument
        Returns number of total exec requests since start for the specified string-ified query key.
        Specified by:
        getTotalExecutionCount in interface QueryCacheInstrument
      • getHitCount

        public long getHitCount​(java.lang.String queryKey)
        Description copied from interface: QueryCacheInstrument
        Returns number of total read requests that have been found in cache since last reset for the specified string-ified query key.
        Specified by:
        getHitCount in interface QueryCacheInstrument
      • getTotalHitCount

        public long getTotalHitCount​(java.lang.String queryKey)
        Description copied from interface: QueryCacheInstrument
        Returns number of total read requests that has been found since start for the specified string-ified query key.
        Specified by:
        getTotalHitCount in interface QueryCacheInstrument
      • queryKeys

        public java.util.Set<java.lang.String> queryKeys()
        Returns all query keys currently tracked in the cache.
        Specified by:
        queryKeys in interface QueryCacheInstrument
      • getLevel

        public InstrumentationLevel getLevel()
        Description copied from interface: Instrument
        Gets the instrumentation level of this instrument. The instrumentation level determines if and when the instrument will automatically start and stop.
        Specified by:
        getLevel in interface Instrument
        Overrides:
        getLevel in class AbstractInstrument
        Returns:
        the instrumentation level of the instrument