Package org.apache.tomcat.dbcp.pool2
Interface TrackedUse
- All Known Implementing Classes:
AbandonedTrace
,DelegatingCallableStatement
,DelegatingConnection
,DelegatingPreparedStatement
,DelegatingResultSet
,DelegatingStatement
,PoolableCallableStatement
,PoolableConnection
,PoolablePreparedStatement
,PoolingConnection
public interface TrackedUse
This interface allows pooled objects to make information available about when
and how they were used available to the object pool. The object pool may, but
is not required, to use this information to make more informed decisions when
determining the state of a pooled object - for instance whether or not the
object has been abandoned.
- Since:
- 2.0
-
Method Summary
Modifier and TypeMethodDescriptionlong
Get the last time this object was used in ms.
-
Method Details
-
getLastUsed
long getLastUsed()Get the last time this object was used in ms.- Returns:
- long time in ms
-