|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.commons.pool2.impl.DefaultPooledObjectInfo
public class DefaultPooledObjectInfo
Implementation of object that is used to provide information on pooled objects via JMX.
| Constructor Summary | |
|---|---|
DefaultPooledObjectInfo(PooledObject<?> pooledObject)
Create a new instance for the given pooled object. |
|
| Method Summary | |
|---|---|
long |
getCreateTime()
Obtain the time (using the same basis as System.currentTimeMillis()) that pooled object was created. |
String |
getCreateTimeFormatted()
Obtain the time that pooled object was created. |
long |
getLastBorrowTime()
Obtain the time (using the same basis as System.currentTimeMillis()) the polled object was last borrowed. |
String |
getLastBorrowTimeFormatted()
Obtain the time that pooled object was last borrowed. |
String |
getLastBorrowTrace()
Obtain the stack trace recorded when the pooled object was last borrowed. |
long |
getLastReturnTime()
Obtain the time (using the same basis as System.currentTimeMillis())the wrapped object was last returned. |
String |
getLastReturnTimeFormatted()
Obtain the time that pooled object was last returned. |
String |
getPooledObjectToString()
Provides a String form of the wrapper for debug purposes. |
String |
getPooledObjectType()
Obtain the name of the class of the pooled object. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultPooledObjectInfo(PooledObject<?> pooledObject)
pooledObject - The pooled object that this instance will represent| Method Detail |
|---|
public long getCreateTime()
DefaultPooledObjectInfoMBeanSystem.currentTimeMillis()) that pooled object was created.
getCreateTime in interface DefaultPooledObjectInfoMBeanpublic String getCreateTimeFormatted()
DefaultPooledObjectInfoMBean
getCreateTimeFormatted 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()
DefaultPooledObjectInfoMBean
getLastBorrowTimeFormatted in interface DefaultPooledObjectInfoMBeanyyyy-MM-dd HH:mm:ss Zpublic String getLastBorrowTrace()
DefaultPooledObjectInfoMBean
getLastBorrowTrace in interface DefaultPooledObjectInfoMBeanpublic long getLastReturnTime()
DefaultPooledObjectInfoMBeanSystem.currentTimeMillis())the wrapped object was last returned.
getLastReturnTime in interface DefaultPooledObjectInfoMBeanpublic String getLastReturnTimeFormatted()
DefaultPooledObjectInfoMBean
getLastReturnTimeFormatted in interface DefaultPooledObjectInfoMBeanyyyy-MM-dd HH:mm:ss Zpublic String getPooledObjectType()
DefaultPooledObjectInfoMBean
getPooledObjectType in interface DefaultPooledObjectInfoMBeanClass.getName()public String getPooledObjectToString()
DefaultPooledObjectInfoMBean
getPooledObjectToString in interface DefaultPooledObjectInfoMBeanObject.toString()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||