public class PooledConnectionStatistics extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
PooledConnectionStatistics.LoadValues
Values representing the load or activity of a PooledConnection.
|
| Constructor and Description |
|---|
PooledConnectionStatistics() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(long durationNanos,
boolean hasError)
Add some time duration to the statistics.
|
void |
add(PooledConnectionStatistics other)
Add statistics from another collector.
|
long |
getCollectionStart() |
long |
getCount() |
long |
getErrorCount() |
long |
getHwmMicros() |
long |
getTotalMicros() |
PooledConnectionStatistics.LoadValues |
getValues(boolean reset)
Get the current values and reset the statistics if necessary.
|
String |
toString() |
public void add(PooledConnectionStatistics other)
public void add(long durationNanos,
boolean hasError)
public long getCollectionStart()
public long getCount()
public long getErrorCount()
public long getTotalMicros()
public long getHwmMicros()
public PooledConnectionStatistics.LoadValues getValues(boolean reset)
Copyright © 2014. All Rights Reserved.