Class TimerAdapter.SampleAdapter

  • All Implemented Interfaces:
    Closeable, AutoCloseable, org.eclipse.microprofile.metrics.SimpleTimer.Context, org.eclipse.microprofile.metrics.Timer.Context
    Enclosing class:
    TimerAdapter

    class TimerAdapter.SampleAdapter
    extends Object
    implements org.eclipse.microprofile.metrics.Timer.Context, org.eclipse.microprofile.metrics.SimpleTimer.Context
    • Field Detail

      • timer

        final io.micrometer.core.instrument.Timer timer
      • sample

        final io.micrometer.core.instrument.Timer.Sample sample
    • Constructor Detail

      • SampleAdapter

        SampleAdapter​(io.micrometer.core.instrument.Timer timer,
                      io.micrometer.core.instrument.Timer.Sample sample)
    • Method Detail

      • stop

        public long stop()
        Specified by:
        stop in interface org.eclipse.microprofile.metrics.SimpleTimer.Context
        Specified by:
        stop in interface org.eclipse.microprofile.metrics.Timer.Context
      • close

        public void close()
        Specified by:
        close in interface AutoCloseable
        Specified by:
        close in interface Closeable
        Specified by:
        close in interface org.eclipse.microprofile.metrics.SimpleTimer.Context
        Specified by:
        close in interface org.eclipse.microprofile.metrics.Timer.Context