public class DefaultPooledObjectInfo extends 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
System.currentTimeMillis()) 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
System.currentTimeMillis()) 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
System.currentTimeMillis())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.
|
String |
toString() |
public DefaultPooledObjectInfo(PooledObject<?> pooledObject)
pooledObject - The pooled object that this instance will representpublic long getBorrowedCount()
DefaultPooledObjectInfoMBeangetBorrowedCount in interface DefaultPooledObjectInfoMBeanpublic long getCreateTime()
DefaultPooledObjectInfoMBeanSystem.currentTimeMillis()) that pooled object was created.getCreateTime in interface DefaultPooledObjectInfoMBeanpublic String getCreateTimeFormatted()
DefaultPooledObjectInfoMBeangetCreateTimeFormatted in interface DefaultPooledObjectInfoMBeanyyyy-MM-dd HH:mm:ss Zpublic long getLastBorrowTime()
DefaultPooledObjectInfoMBeanSystem.currentTimeMillis()) the polled object was last borrowed.getLastBorrowTime in interface DefaultPooledObjectInfoMBeanpublic String getLastBorrowTimeFormatted()
DefaultPooledObjectInfoMBeangetLastBorrowTimeFormatted in interface DefaultPooledObjectInfoMBeanyyyy-MM-dd HH:mm:ss Zpublic String getLastBorrowTrace()
DefaultPooledObjectInfoMBeangetLastBorrowTrace in interface DefaultPooledObjectInfoMBeanpublic long getLastReturnTime()
DefaultPooledObjectInfoMBeanSystem.currentTimeMillis())the wrapped object was last returned.getLastReturnTime in interface DefaultPooledObjectInfoMBeanpublic String getLastReturnTimeFormatted()
DefaultPooledObjectInfoMBeangetLastReturnTimeFormatted in interface DefaultPooledObjectInfoMBeanyyyy-MM-dd HH:mm:ss Zpublic String getPooledObjectToString()
DefaultPooledObjectInfoMBeangetPooledObjectToString in interface DefaultPooledObjectInfoMBeanObject.toString()public String getPooledObjectType()
DefaultPooledObjectInfoMBeangetPooledObjectType in interface DefaultPooledObjectInfoMBeanClass.getName()Copyright © 2000-2022 Apache Software Foundation. All Rights Reserved.