PooledRef, which includes monotonic metrics like its age
(lifeTime()), number of times it was reused (acquireCount()), as well
as contextually changing metrics like the duration for which it has been idle in a pool
(idleTime()).
| Modifier and Type | Method and Description |
|---|---|
| public int | Returns: the number of times this object has been used by consumers of the poolReturn the number of times the underlying pooled object has been used by consumers of the |
| public long | Returns: the creation timestampReturn a timestamp that denotes the order in which the |
| public long | Returns: the wall-clock number of milliseconds since the reference was last released (or allocated, if it was never released)Returns the wall-clock number of milliseconds since the reference was last released (or allocated, if it was never released). |
| public long | |
| public long | Returns: the last release timestamp, or zero if currently acquiredReturn a timestamp that denotes the order in which the |
| acquireCount | back to summary |
|---|---|
| public int acquireCount() Return the number of times the underlying pooled object has been used by consumers of the
| |
| allocationTimestamp | back to summary |
|---|---|
| public long allocationTimestamp() Return a timestamp that denotes the order in which the
| |
| idleTime | back to summary |
|---|---|
| public long idleTime() Returns the wall-clock number of milliseconds since the reference was last released (or allocated, if it was
never released). Can be used on resources that are not currently acquired to detect idle resources.
A
| |
| lifeTime | back to summary |
|---|---|
| public long lifeTime() Returns the age of the
| |
| releaseTimestamp | back to summary |
|---|---|
| public long releaseTimestamp() Return a timestamp that denotes the order in which the
| |