Class JdbcMetricsTimer

  • All Implemented Interfaces:
    org.eclipse.microprofile.metrics.Counting, org.eclipse.microprofile.metrics.Metered, org.eclipse.microprofile.metrics.Metric, org.eclipse.microprofile.metrics.Sampling, org.eclipse.microprofile.metrics.Timer

    public class JdbcMetricsTimer
    extends Object
    implements org.eclipse.microprofile.metrics.Timer
    Timer metric wrapper for Hikari CP metric.
    • Method Detail

      • update

        public void update​(long duration,
                           TimeUnit unit)
        Specified by:
        update in interface org.eclipse.microprofile.metrics.Timer
      • time

        public <T> T time​(Callable<T> event)
                   throws Exception
        Specified by:
        time in interface org.eclipse.microprofile.metrics.Timer
        Throws:
        Exception
      • time

        public void time​(Runnable event)
        Specified by:
        time in interface org.eclipse.microprofile.metrics.Timer
      • time

        public org.eclipse.microprofile.metrics.Timer.Context time()
        Specified by:
        time in interface org.eclipse.microprofile.metrics.Timer
      • getCount

        public long getCount()
        Specified by:
        getCount in interface org.eclipse.microprofile.metrics.Counting
        Specified by:
        getCount in interface org.eclipse.microprofile.metrics.Metered
        Specified by:
        getCount in interface org.eclipse.microprofile.metrics.Timer
      • getFifteenMinuteRate

        public double getFifteenMinuteRate()
        Specified by:
        getFifteenMinuteRate in interface org.eclipse.microprofile.metrics.Metered
        Specified by:
        getFifteenMinuteRate in interface org.eclipse.microprofile.metrics.Timer
      • getFiveMinuteRate

        public double getFiveMinuteRate()
        Specified by:
        getFiveMinuteRate in interface org.eclipse.microprofile.metrics.Metered
        Specified by:
        getFiveMinuteRate in interface org.eclipse.microprofile.metrics.Timer
      • getMeanRate

        public double getMeanRate()
        Specified by:
        getMeanRate in interface org.eclipse.microprofile.metrics.Metered
        Specified by:
        getMeanRate in interface org.eclipse.microprofile.metrics.Timer
      • getOneMinuteRate

        public double getOneMinuteRate()
        Specified by:
        getOneMinuteRate in interface org.eclipse.microprofile.metrics.Metered
        Specified by:
        getOneMinuteRate in interface org.eclipse.microprofile.metrics.Timer
      • getSnapshot

        public org.eclipse.microprofile.metrics.Snapshot getSnapshot()
        Specified by:
        getSnapshot in interface org.eclipse.microprofile.metrics.Sampling
        Specified by:
        getSnapshot in interface org.eclipse.microprofile.metrics.Timer