public final class CodaHaleMetricsTracker extends MetricsTracker
| Modifier and Type | Class and Description |
|---|---|
static class |
CodaHaleMetricsTracker.Context |
IMetricsTracker.MetricsContextNO_CONTEXT| Constructor and Description |
|---|
CodaHaleMetricsTracker(String poolName) |
| Modifier and Type | Method and Description |
|---|---|
CodaHaleMetricsTracker.Context |
recordConnectionRequest(long requestTime)
This method is called when a connection request starts.
|
void |
recordConnectionUsage(long usageMilleseconds)
This method is called when a Connection is closed, with the total time in milliseconds
that the Connection was out of the pool.
|
public CodaHaleMetricsTracker(String poolName)
public CodaHaleMetricsTracker.Context recordConnectionRequest(long requestTime)
IMetricsTrackerIMetricsTracker.MetricsContext.stop()
method will be called at the completion of the connection request, whether or not an
exception occurred.recordConnectionRequest in interface IMetricsTrackerrecordConnectionRequest in class MetricsTrackerrequestTime - the timestamp of the start time as returned by System.currentTimeMillis()public void recordConnectionUsage(long usageMilleseconds)
IMetricsTrackerrecordConnectionUsage in interface IMetricsTrackerrecordConnectionUsage in class MetricsTrackerusageMilleseconds - the Connection usage time in millisecondsCopyright © 2014 Zaxxer.com. All rights reserved.