public class ACollectingMeasurement extends Object implements AWithParameters
A typical example of this is iterating over a JDBC ResultSet: calling 'next()' on the ResultSet may take significant time, and measuring that time can be of interest. It is however often sufficient to measure the total time used up by iterating over the ResultSet.
| Modifier and Type | Class and Description |
|---|---|
static class |
ACollectingMeasurement.Detail |
| Modifier and Type | Method and Description |
|---|---|
void |
addDetailMeasurement(String detailIdentifier,
long durationNanos) |
void |
addParameter(String identifier,
String value) |
<R,E extends Exception> |
detail(String detailIdentifier,
AMeasureCallback<R,E> callback) |
void |
finish() |
void |
finishDetail() |
Map<String,ACollectingMeasurement.Detail> |
getDetails() |
String |
getIdentifier() |
Map<String,String> |
getParameters() |
long |
getStartTimeMillis() |
long |
getTotalDurationNanos() |
boolean |
isFinished() |
boolean |
isSerial() |
void |
startDetail(String detailIdentifier) |
public boolean isSerial()
public long getStartTimeMillis()
public String getIdentifier()
public void addParameter(String identifier, String value)
addParameter in interface AWithParameterspublic Map<String,ACollectingMeasurement.Detail> getDetails()
public long getTotalDurationNanos()
public <R,E extends Exception> R detail(String detailIdentifier, AMeasureCallback<R,E> callback) throws E extends Exception
E extends Exceptionpublic void startDetail(String detailIdentifier)
public void finishDetail()
public void addDetailMeasurement(String detailIdentifier, long durationNanos)
public boolean isFinished()
public void finish()
Copyright © 2017. All rights reserved.