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 |
---|---|
int |
getActiveConnections()
Get the current number of active (in-use) connections.
|
int |
getIdleConnections()
Get the current number of idle connections.
|
int |
getThreadsAwaitingConnection()
Get the current number of threads awaiting a connection.
|
int |
getTotalConnections()
Get the current total number of connections.
|
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 millisecondsint getIdleConnections()
int getActiveConnections()
int getTotalConnections()
int getThreadsAwaitingConnection()
Copyright © 2014 Zaxxer.com. All Rights Reserved.