Class Stopwatch$


  • public class Stopwatch$
    extends java.lang.Object
    • Field Detail

      • MODULE$

        public static final Stopwatch$ MODULE$
        Static reference to the singleton instance of this Scala object.
    • Constructor Detail

      • Stopwatch$

        public Stopwatch$()
    • Method Detail

      • getData

        public <T> T getData​(Stopwatch stopwatch,
                             T empty)
        INTERNAL API. Get stopwatch data in current context.

        Type Parameters:
        T - type of stopwatch data
        Parameters:
        stopwatch - associated stopwatch
        empty - default empty stopwatch data
        Returns:
        stopwatch data for given stopwatch
      • setData

        public <T> void setData​(Stopwatch stopwatch,
                                T data)
        INTERNAL API. Set stopwatch data in current context.

        Type Parameters:
        T - type of stopwatch data
        Parameters:
        stopwatch - associated stopwatch
        data - stopwatch data
      • clearData

        public void clearData​(Stopwatch stopwatch)
        INTERNAL API. Clear stopwatch data in current context.

        Parameters:
        stopwatch - associated stopwatch
      • emptyStopwatchSet

        public scala.collection.immutable.Set<Stopwatch> emptyStopwatchSet()
      • getStopwatches

        public scala.collection.immutable.Set<Stopwatch> getStopwatches()
        INTERNAL API. Get all stopwatches in current context.

        Returns:
        stopwatches that have data stored in thread-local context