public final class CodaHaleMetricsTracker extends MetricsTracker
Modifier and Type | Class and Description |
---|---|
static class |
CodaHaleMetricsTracker.Context |
IMetricsTracker.MetricsContext
NO_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)
IMetricsTracker
IMetricsTracker.MetricsContext.stop()
method will be called at the completion of the connection request, whether or not an
exception occurred.recordConnectionRequest
in interface IMetricsTracker
recordConnectionRequest
in class MetricsTracker
requestTime
- the timestamp of the start time as returned by System.currentTimeMillis()public void recordConnectionUsage(long usageMilleseconds)
IMetricsTracker
recordConnectionUsage
in interface IMetricsTracker
recordConnectionUsage
in class MetricsTracker
usageMilleseconds
- the Connection usage time in millisecondsCopyright © 2014 Zaxxer.com. All rights reserved.