|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.pool.PooledConnectionStatistics
public class PooledConnectionStatistics
Statistics associated with a connection's activity in the pool. Exposes the timestamps when this connection entered both the available pool and the active pool. A size of 512 uses approximately 50 kilobytes of memory per connection.
| Constructor Summary | |
|---|---|
PooledConnectionStatistics(int i)
Creates a new pooled connection statistics. |
|
| Method Summary | |
|---|---|
void |
addActiveStat()
Inserts the current timestamp into the active statistics. |
void |
addAvailableStat()
Inserts the current timestamp into the available statistics. |
Deque<Long> |
getActiveStats()
Returns all the active timestamp statistics. |
Deque<Long> |
getAvailableStats()
Returns all the available timestamp statistics. |
Long |
getLastActiveStat()
Returns the last timestamp at which this connection was made active. |
Long |
getLastAvailableState()
Returns the last timestamp at which this connection was made available. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public PooledConnectionStatistics(int i)
i - number of timestamps to store| Method Detail |
|---|
public Deque<Long> getAvailableStats()
public Long getLastAvailableState()
public void addAvailableStat()
public Deque<Long> getActiveStats()
public Long getLastActiveStat()
public void addActiveStat()
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||