public class MetricsTracker extends Object implements IMetricsTracker
IMetricsTracker.MetricsContext| Modifier and Type | Field and Description |
|---|---|
static IMetricsTracker.MetricsContext |
NO_CONTEXT |
| Constructor and Description |
|---|
MetricsTracker() |
MetricsTracker(String poolName) |
| Modifier and Type | Method and Description |
|---|---|
IMetricsTracker.MetricsContext |
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 static final IMetricsTracker.MetricsContext NO_CONTEXT
public MetricsTracker()
public MetricsTracker(String poolName)
public IMetricsTracker.MetricsContext 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 IMetricsTrackerrequestTime - the timestamp of the start time as returned by System.currentTimeMillis()public void recordConnectionUsage(long usageMilleseconds)
IMetricsTrackerrecordConnectionUsage in interface IMetricsTrackerusageMilleseconds - the Connection usage time in millisecondsCopyright © 2014 Zaxxer.com. All rights reserved.