org.apache.commons.pool2.impl
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.

Since:
2.0

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.
 

Method Detail

getCreateTime

long getCreateTime()
Obtain the time (using the same basis as System.currentTimeMillis()) that pooled object was created.

Returns:
The creation time for the pooled object

getCreateTimeFormatted

String getCreateTimeFormatted()
Obtain the time that pooled object was created.

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

getLastBorrowTime

long getLastBorrowTime()
Obtain the time (using the same basis as System.currentTimeMillis()) the polled object was last borrowed.

Returns:
The time the pooled object was last borrowed

getLastBorrowTimeFormatted

String getLastBorrowTimeFormatted()
Obtain the time that pooled object was last borrowed.

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

getLastBorrowTrace

String 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

getLastReturnTime

long getLastReturnTime()
Obtain the time (using the same basis as System.currentTimeMillis())the wrapped object was last returned.

Returns:
The time the object was last returned

getLastReturnTimeFormatted

String getLastReturnTimeFormatted()
Obtain the time that pooled object was last returned.

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

getPooledObjectType

String getPooledObjectType()
Obtain the name of the class of the pooled object.

Returns:
The pooled object's class name
See Also:
Class.getName()

getPooledObjectToString

String 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:
Object.toString()


Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.