public class StageStats extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
StageStats(Eventloop eventloop,
ValueStats duration) |
| Modifier and Type | Method and Description |
|---|---|
static StageStats |
create(Duration smoothingWindow) |
static StageStats |
createMBean(Eventloop eventloop,
Duration smoothingWindow) |
long |
getActiveStages() |
Duration |
getCurrentDuration() |
ValueStats |
getDuration() |
ExceptionStats |
getExceptions() |
Instant |
getLastCompleteTime() |
Instant |
getLastStartTime() |
<T> Stage<T> |
monitor(Stage<T> stage) |
<T> BiConsumer<T,Throwable> |
recordStats() |
void |
setHistogramLevels(int[] levels) |
StageStats |
withHistogram(int[] levels) |
<T> AsyncCallable<T> |
wrapper(AsyncCallable<T> callable) |
protected StageStats(Eventloop eventloop, ValueStats duration)
public static StageStats createMBean(Eventloop eventloop, Duration smoothingWindow)
public static StageStats create(Duration smoothingWindow)
public StageStats withHistogram(int[] levels)
public void setHistogramLevels(int[] levels)
public <T> AsyncCallable<T> wrapper(AsyncCallable<T> callable)
public <T> BiConsumer<T,Throwable> recordStats()
public long getActiveStages()
public ValueStats getDuration()
public ExceptionStats getExceptions()
Copyright © 2019. All rights reserved.