public class DefaultPooledObjectInfo extends java.lang.Object implements DefaultPooledObjectInfoMBean
| Constructor and Description |
|---|
DefaultPooledObjectInfo(PooledObject<?> pooledObject)
Constructs a new instance for the given pooled object.
|
| 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.
|
java.lang.String |
toString() |
public DefaultPooledObjectInfo(PooledObject<?> pooledObject)
pooledObject - The pooled object that this instance will representjava.lang.NullPointerException - if obj is nullpublic long getBorrowedCount()
DefaultPooledObjectInfoMBeangetBorrowedCount in interface DefaultPooledObjectInfoMBeanpublic long getCreateTime()
DefaultPooledObjectInfoMBeanClock.instant()) that pooled object was created.getCreateTime in interface DefaultPooledObjectInfoMBeanpublic java.lang.String getCreateTimeFormatted()
DefaultPooledObjectInfoMBeangetCreateTimeFormatted in interface DefaultPooledObjectInfoMBeanyyyy-MM-dd HH:mm:ss Z.public long getLastBorrowTime()
DefaultPooledObjectInfoMBeanClock.instant()) the polled object was last borrowed.getLastBorrowTime in interface DefaultPooledObjectInfoMBeanpublic java.lang.String getLastBorrowTimeFormatted()
DefaultPooledObjectInfoMBeangetLastBorrowTimeFormatted in interface DefaultPooledObjectInfoMBeanyyyy-MM-dd HH:mm:ss Z.public java.lang.String getLastBorrowTrace()
DefaultPooledObjectInfoMBeangetLastBorrowTrace in interface DefaultPooledObjectInfoMBeanpublic long getLastReturnTime()
DefaultPooledObjectInfoMBeanClock.instant())the wrapped object was last returned.getLastReturnTime in interface DefaultPooledObjectInfoMBeanpublic java.lang.String getLastReturnTimeFormatted()
DefaultPooledObjectInfoMBeangetLastReturnTimeFormatted in interface DefaultPooledObjectInfoMBeanyyyy-MM-dd HH:mm:ss Z.public java.lang.String getPooledObjectToString()
DefaultPooledObjectInfoMBeangetPooledObjectToString in interface DefaultPooledObjectInfoMBeanObject.toString()public java.lang.String getPooledObjectType()
DefaultPooledObjectInfoMBeangetPooledObjectType in interface DefaultPooledObjectInfoMBeanClass.getName()public java.lang.String toString()
toString in class java.lang.ObjectCopyright © 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.