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. |
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. |
String |
getLastBorrowTimeFormatted()
Gets the time that pooled object was last borrowed.
|
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. |
String |
getLastReturnTimeFormatted()
Gets the time that pooled object was last returned.
|
String |
getPooledObjectToString()
Gets a String form of the wrapper for debug purposes.
|
String |
getPooledObjectType()
Gets the name of the class of the pooled object.
|
long getBorrowedCount()
long getCreateTime()
Clock.instant()) that pooled object was created.String getCreateTimeFormatted()
yyyy-MM-dd HH:mm:ss Z.long getLastBorrowTime()
Clock.instant()) the polled object was last borrowed.String getLastBorrowTimeFormatted()
yyyy-MM-dd HH:mm:ss Z.String getLastBorrowTrace()
long getLastReturnTime()
Clock.instant())the wrapped object was last returned.String getLastReturnTimeFormatted()
yyyy-MM-dd HH:mm:ss Z.String getPooledObjectToString()
Object.toString()String getPooledObjectType()
Class.getName()Copyright © 2001–2025 The Apache Software Foundation. All rights reserved.