public class ResponseTimeMetric extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ResponseTimeMetric.CallResult |
Modifier and Type | Field and Description |
---|---|
AtomicInteger |
activeTracked |
AtomicInteger |
totalFailed |
AtomicInteger |
totalRejected |
AtomicInteger |
totalResponses |
Modifier and Type | Method and Description |
---|---|
long |
getAverageTime() |
void |
setCallback(com.google.common.base.Function<ResponseTimeMetric.CallResult,Void> callback) |
<T> void |
track(com.google.common.util.concurrent.ListenableFuture<T> future,
long t0,
int rate) |
public final AtomicInteger totalResponses
public final AtomicInteger totalFailed
public final AtomicInteger totalRejected
public final AtomicInteger activeTracked
public void setCallback(com.google.common.base.Function<ResponseTimeMetric.CallResult,Void> callback)
public long getAverageTime()
public <T> void track(com.google.common.util.concurrent.ListenableFuture<T> future, long t0, int rate)
Copyright © 2016. All rights reserved.