|
||||||||||
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 representMethod Detail |
---|
public long getCreateTime()
DefaultPooledObjectInfoMBean
System.currentTimeMillis()
) that pooled object was created.
getCreateTime
in interface DefaultPooledObjectInfoMBean
public String getCreateTimeFormatted()
DefaultPooledObjectInfoMBean
getCreateTimeFormatted
in interface DefaultPooledObjectInfoMBean
yyyy-MM-dd HH:mm:ss Z
public long getLastBorrowTime()
DefaultPooledObjectInfoMBean
System.currentTimeMillis()
) the polled object was last borrowed.
getLastBorrowTime
in interface DefaultPooledObjectInfoMBean
public String getLastBorrowTimeFormatted()
DefaultPooledObjectInfoMBean
getLastBorrowTimeFormatted
in interface DefaultPooledObjectInfoMBean
yyyy-MM-dd HH:mm:ss Z
public String getLastBorrowTrace()
DefaultPooledObjectInfoMBean
getLastBorrowTrace
in interface DefaultPooledObjectInfoMBean
public long getLastReturnTime()
DefaultPooledObjectInfoMBean
System.currentTimeMillis()
)the wrapped object was last returned.
getLastReturnTime
in interface DefaultPooledObjectInfoMBean
public String getLastReturnTimeFormatted()
DefaultPooledObjectInfoMBean
getLastReturnTimeFormatted
in interface DefaultPooledObjectInfoMBean
yyyy-MM-dd HH:mm:ss Z
public String getPooledObjectType()
DefaultPooledObjectInfoMBean
getPooledObjectType
in interface DefaultPooledObjectInfoMBean
Class.getName()
public String getPooledObjectToString()
DefaultPooledObjectInfoMBean
getPooledObjectToString
in interface DefaultPooledObjectInfoMBean
Object.toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |