Top Description Methods
org.apache.commons.pool2.impl

public Interface DefaultPooledObjectInfoMBean

Known Direct Implementers
org.apache.commons.pool2.impl.DefaultPooledObjectInfo

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 Summary

Modifier and TypeMethod and Description
public long

Returns:

The number of times this object has been borrowed.
getBorrowedCount
()

Gets the number of times this object has been borrowed.

public long

Returns:

The creation time for the pooled object.
getCreateTime
()

Gets the time (using the same basis as java.time.Clock#instant()) that pooled object was created.

public String

Returns:

The creation time for the pooled object formatted as yyyy-MM-dd HH:mm:ss Z.
getCreateTimeFormatted
()

Gets the time that pooled object was created.

public long

Returns:

The time the pooled object was last borrowed.
getLastBorrowTime
()

Gets the time (using the same basis as java.time.Clock#instant()) the polled object was last borrowed.

public String

Returns:

The last borrowed time for the pooled object formatted as yyyy-MM-dd HH:mm:ss Z.
getLastBorrowTimeFormatted
()

Gets the time that pooled object was last borrowed.

public String

Returns:

The stack trace showing which code last borrowed the pooled object.
getLastBorrowTrace
()

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

public long

Returns:

The time the object was last returned.
getLastReturnTime
()

Gets the time (using the same basis as java.time.Clock#instant())the wrapped object was last returned.

public String

Returns:

The last returned time for the pooled object formatted as yyyy-MM-dd HH:mm:ss Z.
getLastReturnTimeFormatted
()

Gets the time that pooled object was last returned.

public String

Returns:

A string representation of the pooled object.
getPooledObjectToString
()

Gets a String form of the wrapper for debug purposes.

public String

Returns:

The pooled object's class name.
getPooledObjectType
()

Gets the name of the class of the pooled object.

Method Detail

getBorrowedCountback to summary
public long getBorrowedCount()

Gets the number of times this object has been borrowed.

Returns:long

The number of times this object has been borrowed.

Since
2.1
getCreateTimeback to summary
public long getCreateTime()

Gets the time (using the same basis as java.time.Clock#instant()) that pooled object was created.

Returns:long

The creation time for the pooled object.

getCreateTimeFormattedback to summary
public String getCreateTimeFormatted()

Gets the time that pooled object was created.

Returns:String

The creation time for the pooled object formatted as yyyy-MM-dd HH:mm:ss Z.

getLastBorrowTimeback to summary
public long getLastBorrowTime()

Gets the time (using the same basis as java.time.Clock#instant()) the polled object was last borrowed.

Returns:long

The time the pooled object was last borrowed.

getLastBorrowTimeFormattedback to summary
public String getLastBorrowTimeFormatted()

Gets the time that pooled object was last borrowed.

Returns:String

The last borrowed time for the pooled object formatted as yyyy-MM-dd HH:mm:ss Z.

getLastBorrowTraceback to summary
public String getLastBorrowTrace()

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

Returns:String

The stack trace showing which code last borrowed the pooled object.

getLastReturnTimeback to summary
public long getLastReturnTime()

Gets the time (using the same basis as java.time.Clock#instant())the wrapped object was last returned.

Returns:long

The time the object was last returned.

getLastReturnTimeFormattedback to summary
public String getLastReturnTimeFormatted()

Gets the time that pooled object was last returned.

Returns:String

The last returned time for the pooled object formatted as yyyy-MM-dd HH:mm:ss Z.

getPooledObjectToStringback to summary
public String getPooledObjectToString()

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

Returns:String

A string representation of the pooled object.

See Also
Object#toString()
getPooledObjectTypeback to summary
public String getPooledObjectType()

Gets the name of the class of the pooled object.

Returns:String

The pooled object's class name.

See Also
Class#getName()