public class DefaultPooledObjectInfo extends java.lang.Object implements DefaultPooledObjectInfoMBean
Constructor and Description |
---|
DefaultPooledObjectInfo(PooledObject<?> pooledObject)
Create a new instance for the given pooled object.
|
Modifier and Type | Method and Description |
---|---|
long |
getBorrowedCount()
Get the number of times this object has been borrowed.
|
long |
getCreateTime()
Obtain the time (using the same basis as
System.currentTimeMillis() ) that pooled object was created. |
java.lang.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. |
java.lang.String |
getLastBorrowTimeFormatted()
Obtain the time that pooled object was last borrowed.
|
java.lang.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. |
java.lang.String |
getLastReturnTimeFormatted()
Obtain the time that pooled object was last returned.
|
java.lang.String |
getPooledObjectToString()
Provides a String form of the wrapper for debug purposes.
|
java.lang.String |
getPooledObjectType()
Obtain the name of the class of the pooled object.
|
java.lang.String |
toString() |
public DefaultPooledObjectInfo(PooledObject<?> pooledObject)
pooledObject
- The pooled object that this instance will representpublic long getCreateTime()
DefaultPooledObjectInfoMBean
System.currentTimeMillis()
) that pooled object was created.getCreateTime
in interface DefaultPooledObjectInfoMBean
public java.lang.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 java.lang.String getLastBorrowTimeFormatted()
DefaultPooledObjectInfoMBean
getLastBorrowTimeFormatted
in interface DefaultPooledObjectInfoMBean
yyyy-MM-dd HH:mm:ss Z
public java.lang.String getLastBorrowTrace()
DefaultPooledObjectInfoMBean
getLastBorrowTrace
in interface DefaultPooledObjectInfoMBean
public long getLastReturnTime()
DefaultPooledObjectInfoMBean
System.currentTimeMillis()
)the wrapped object was last returned.getLastReturnTime
in interface DefaultPooledObjectInfoMBean
public java.lang.String getLastReturnTimeFormatted()
DefaultPooledObjectInfoMBean
getLastReturnTimeFormatted
in interface DefaultPooledObjectInfoMBean
yyyy-MM-dd HH:mm:ss Z
public java.lang.String getPooledObjectType()
DefaultPooledObjectInfoMBean
getPooledObjectType
in interface DefaultPooledObjectInfoMBean
Class.getName()
public java.lang.String getPooledObjectToString()
DefaultPooledObjectInfoMBean
getPooledObjectToString
in interface DefaultPooledObjectInfoMBean
Object.toString()
public long getBorrowedCount()
DefaultPooledObjectInfoMBean
getBorrowedCount
in interface DefaultPooledObjectInfoMBean
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2000-2018 Apache Software Foundation. All Rights Reserved.