Package com.lightbend.cinnamon.stopwatch
Class Stopwatch$
- java.lang.Object
-
- com.lightbend.cinnamon.stopwatch.Stopwatch$
-
public class Stopwatch$ extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description static Stopwatch$MODULE$Static reference to the singleton instance of this Scala object.
-
Constructor Summary
Constructors Constructor Description Stopwatch$()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclearData(Stopwatch stopwatch)INTERNAL API.scala.collection.immutable.Set<Stopwatch>emptyStopwatchSet()<T> TgetData(Stopwatch stopwatch, T empty)INTERNAL API.scala.collection.immutable.Set<Stopwatch>getStopwatches()INTERNAL API.<T> voidsetData(Stopwatch stopwatch, T data)INTERNAL API.
-
-
-
Field Detail
-
MODULE$
public static final Stopwatch$ MODULE$
Static reference to the singleton instance of this Scala object.
-
-
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 stopwatchempty- 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 stopwatchdata- 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
-
-