public abstract class StopwatchBlocks extends java.lang.Object implements Stopwatch
wrap and start.| Constructor and Description |
|---|
StopwatchBlocks() |
| Modifier and Type | Method and Description |
|---|---|
void |
activate(java.lang.String name)
Start a stopwatch where subsequent operations in the current asynchronous scope will propagate the stopwatch; such as within the scope of an Akka Stream operator.
|
abstract void |
add(java.lang.String name) |
abstract void |
remove(java.lang.String name) |
<T> T |
start(java.lang.String name,
scala.Function0<T> body)
Start a stopwatch where the operations in the block will propagate the stopwatch.
|
void |
start(java.lang.String name,
java.lang.Runnable runnable)
Start a stopwatch where the operations in the runnable will propagate the stopwatch.
|
<T> T |
wrap(java.lang.String name,
scala.Function0<T> body)
Run the block within a stopwatch start and stop, to create a user defined time interval.
|
void |
wrap(java.lang.String name,
java.lang.Runnable runnable)
Run the runnable within a stopwatch start and end, to create a user defined time interval.
|
public void activate(java.lang.String name)
Stopwatchpublic abstract void add(java.lang.String name)
public abstract void remove(java.lang.String name)
public <T> T start(java.lang.String name,
scala.Function0<T> body)
Stopwatchpublic void start(java.lang.String name,
java.lang.Runnable runnable)
Stopwatchpublic <T> T wrap(java.lang.String name,
scala.Function0<T> body)
Stopwatchpublic void wrap(java.lang.String name,
java.lang.Runnable runnable)
StopwatchCinnamon API. Copyright (c) 2015–2021 Lightbend.