Class TimerAdapter.SampleAdapter

java.lang.Object
io.quarkus.micrometer.runtime.binder.mpmetrics.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 Summary

    Fields
    Modifier and Type
    Field
    Description
    (package private) final io.micrometer.core.instrument.Timer.Sample
     
    (package private) final io.micrometer.core.instrument.Timer
     
  • Constructor Summary

    Constructors
    Constructor
    Description
    SampleAdapter(io.micrometer.core.instrument.Timer timer, io.micrometer.core.instrument.Timer.Sample sample)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    long
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Field Details

    • timer

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

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

    • SampleAdapter

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

    • 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