public interface DefaultPooledObjectInfoMBean
This interface exists only to define those attributes and methods that will be made available via JMX. It must not be implemented by clients as it is subject to change between major, minor and patch version releases of commons pool. Clients that implement this interface may not, therefore, be able to upgrade to a new minor or patch release without requiring code changes.
| Modifier and Type | Method and Description |
|---|---|
long |
getBorrowedCount()
Gets the number of times this object has been borrowed.
|
long |
getCreateTime()
Gets the time (using the same basis as
Clock.instant()) that pooled object was created. |
java.lang.String |
getCreateTimeFormatted()
Gets the time that pooled object was created.
|
long |
getLastBorrowTime()
Gets the time (using the same basis as
Clock.instant()) the polled object was last borrowed. |
java.lang.String |
getLastBorrowTimeFormatted()
Gets the time that pooled object was last borrowed.
|
java.lang.String |
getLastBorrowTrace()
Gets the stack trace recorded when the pooled object was last borrowed.
|
long |
getLastReturnTime()
Gets the time (using the same basis as
Clock.instant())the wrapped object was last returned. |
java.lang.String |
getLastReturnTimeFormatted()
Gets the time that pooled object was last returned.
|
java.lang.String |
getPooledObjectToString()
Gets a String form of the wrapper for debug purposes.
|
java.lang.String |
getPooledObjectType()
Gets the name of the class of the pooled object.
|
long getBorrowedCount()
long getCreateTime()
Clock.instant()) that pooled object was created.java.lang.String getCreateTimeFormatted()
yyyy-MM-dd HH:mm:ss Z.long getLastBorrowTime()
Clock.instant()) the polled object was last borrowed.java.lang.String getLastBorrowTimeFormatted()
yyyy-MM-dd HH:mm:ss Z.java.lang.String getLastBorrowTrace()
long getLastReturnTime()
Clock.instant())the wrapped object was last returned.java.lang.String getLastReturnTimeFormatted()
yyyy-MM-dd HH:mm:ss Z.java.lang.String getPooledObjectToString()
Object.toString()java.lang.String getPooledObjectType()
Class.getName()Copyright © 2000-2024 Apache Software Foundation.
Apache Tomcat, Tomcat, Apache, the Apache Tomcat logo and the Apache logo are either registered trademarks or trademarks of the Apache Software Foundation.