Interface DefaultPooledObjectInfoMBean
- All Known Implementing Classes:
- DefaultPooledObjectInfo
public interface DefaultPooledObjectInfoMBean
The interface that defines the information about pooled objects that will be
 exposed via JMX.
 NOTE: 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.
- Since:
- 2.0
- 
Method SummaryModifier and TypeMethodDescriptionlongGet the number of times this object has been borrowed.longObtain the time (using the same basis asSystem.currentTimeMillis()) that pooled object was created.Obtain the time that pooled object was created.longObtain the time (using the same basis asSystem.currentTimeMillis()) the polled object was last borrowed.Obtain the time that pooled object was last borrowed.Obtain the stack trace recorded when the pooled object was last borrowed.longObtain the time (using the same basis asSystem.currentTimeMillis())the wrapped object was last returned.Obtain the time that pooled object was last returned.Provides a String form of the wrapper for debug purposes.Obtain the name of the class of the pooled object.
- 
Method Details- 
getCreateTimelong getCreateTime()Obtain the time (using the same basis asSystem.currentTimeMillis()) that pooled object was created.- Returns:
- The creation time for the pooled object
 
- 
getCreateTimeFormattedString getCreateTimeFormatted()Obtain the time that pooled object was created.- Returns:
- The creation time for the pooled object formatted as
         yyyy-MM-dd HH:mm:ss Z
 
- 
getLastBorrowTimelong getLastBorrowTime()Obtain the time (using the same basis asSystem.currentTimeMillis()) the polled object was last borrowed.- Returns:
- The time the pooled object was last borrowed
 
- 
getLastBorrowTimeFormattedString getLastBorrowTimeFormatted()Obtain the time that pooled object was last borrowed.- Returns:
- The last borrowed time for the pooled object formatted as
         yyyy-MM-dd HH:mm:ss Z
 
- 
getLastBorrowTraceString getLastBorrowTrace()Obtain the stack trace recorded when the pooled object was last borrowed.- Returns:
- The stack trace showing which code last borrowed the pooled object
 
- 
getLastReturnTimelong getLastReturnTime()Obtain the time (using the same basis asSystem.currentTimeMillis())the wrapped object was last returned.- Returns:
- The time the object was last returned
 
- 
getLastReturnTimeFormattedString getLastReturnTimeFormatted()Obtain the time that pooled object was last returned.- Returns:
- The last returned time for the pooled object formatted as
         yyyy-MM-dd HH:mm:ss Z
 
- 
getPooledObjectTypeString getPooledObjectType()Obtain the name of the class of the pooled object.- Returns:
- The pooled object's class name
- See Also:
 
- 
getPooledObjectToStringString getPooledObjectToString()Provides a String form of the wrapper for debug purposes. The format is not fixed and may change at any time.- Returns:
- A string representation of the pooled object
- See Also:
 
- 
getBorrowedCountlong getBorrowedCount()Get the number of times this object has been borrowed.- Returns:
- The number of times this object has been borrowed.
- Since:
- 2.1
 
 
-