Class ReplayAwareScope

  • All Implemented Interfaces:
    com.uber.m3.tally.Scope, java.lang.AutoCloseable

    public class ReplayAwareScope
    extends java.lang.Object
    implements com.uber.m3.tally.Scope
    • Constructor Summary

      Constructors 
      Constructor Description
      ReplayAwareScope​(com.uber.m3.tally.Scope scope, ReplayAware context, java.util.function.Supplier<java.lang.Long> clock)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      com.uber.m3.tally.Capabilities capabilities()  
      void close()  
      com.uber.m3.tally.Counter counter​(java.lang.String name)  
      com.uber.m3.tally.Gauge gauge​(java.lang.String name)  
      com.uber.m3.tally.Histogram histogram​(java.lang.String name, com.uber.m3.tally.Buckets buckets)  
      com.uber.m3.tally.Scope subScope​(java.lang.String name)  
      com.uber.m3.tally.Scope tagged​(java.util.Map<java.lang.String,​java.lang.String> tags)  
      com.uber.m3.tally.Timer timer​(java.lang.String name)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ReplayAwareScope

        public ReplayAwareScope​(com.uber.m3.tally.Scope scope,
                                ReplayAware context,
                                java.util.function.Supplier<java.lang.Long> clock)
    • Method Detail

      • counter

        public com.uber.m3.tally.Counter counter​(java.lang.String name)
        Specified by:
        counter in interface com.uber.m3.tally.Scope
      • gauge

        public com.uber.m3.tally.Gauge gauge​(java.lang.String name)
        Specified by:
        gauge in interface com.uber.m3.tally.Scope
      • timer

        public com.uber.m3.tally.Timer timer​(java.lang.String name)
        Specified by:
        timer in interface com.uber.m3.tally.Scope
      • histogram

        public com.uber.m3.tally.Histogram histogram​(java.lang.String name,
                                                     com.uber.m3.tally.Buckets buckets)
        Specified by:
        histogram in interface com.uber.m3.tally.Scope
      • tagged

        public com.uber.m3.tally.Scope tagged​(java.util.Map<java.lang.String,​java.lang.String> tags)
        Specified by:
        tagged in interface com.uber.m3.tally.Scope
      • subScope

        public com.uber.m3.tally.Scope subScope​(java.lang.String name)
        Specified by:
        subScope in interface com.uber.m3.tally.Scope
      • capabilities

        public com.uber.m3.tally.Capabilities capabilities()
        Specified by:
        capabilities in interface com.uber.m3.tally.Scope
      • close

        public void close()
                   throws com.uber.m3.tally.ScopeCloseException
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface com.uber.m3.tally.Scope
        Throws:
        com.uber.m3.tally.ScopeCloseException