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.

Members

Functions

getBorrowedCount
long getBorrowedCount()

Get the number of times this object has been borrowed. @return The number of times this object has been borrowed.

getCreateTime
long getCreateTime()

Obtain the time (using the same basis as {@link DateTimeHelper.currentTimeMillis()}) that pooled object was created.

getCreateTimeFormatted
string getCreateTimeFormatted()

Obtain the time that pooled object was created.

getLastBorrowTime
long getLastBorrowTime()

Obtain the time (using the same basis as {@link DateTimeHelper.currentTimeMillis()}) the polled object was last borrowed.

getLastBorrowTimeFormatted
string getLastBorrowTimeFormatted()

Obtain the time that pooled object was last borrowed.

getLastBorrowTrace
string getLastBorrowTrace()

Obtain the stack trace recorded when the pooled object was last borrowed.

getLastReturnTime
long getLastReturnTime()

Obtain the time (using the same basis as {@link DateTimeHelper.currentTimeMillis()})the wrapped object was last returned.

getLastReturnTimeFormatted
string getLastReturnTimeFormatted()

Obtain the time that pooled object was last returned.

getPooledObjectToString
string getPooledObjectToString()

Provides a string form of the wrapper for debug purposes. The format is not fixed and may change at any time.

getPooledObjectType
string getPooledObjectType()

Obtain the name of the class of the pooled object.

Meta