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