Class DefaultPooledObjectInfo

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      long getBorrowedCount()
      Gets the number of times this object has been borrowed.
      long getCreateTime()
      Gets the time (using the same basis as Clock.instant()) that pooled object was created.
      java.lang.String getCreateTimeFormatted()
      Gets the time that pooled object was created.
      long getLastBorrowTime()
      Gets the time (using the same basis as Clock.instant()) the polled object was last borrowed.
      java.lang.String getLastBorrowTimeFormatted()
      Gets the time that pooled object was last borrowed.
      java.lang.String getLastBorrowTrace()
      Gets the stack trace recorded when the pooled object was last borrowed.
      long getLastReturnTime()
      Gets the time (using the same basis as Clock.instant())the wrapped object was last returned.
      java.lang.String getLastReturnTimeFormatted()
      Gets the time that pooled object was last returned.
      java.lang.String getPooledObjectToString()
      Gets a String form of the wrapper for debug purposes.
      java.lang.String getPooledObjectType()
      Gets the name of the class of the pooled object.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • DefaultPooledObjectInfo

        public DefaultPooledObjectInfo​(PooledObject<?> pooledObject)
        Constructs a new instance for the given pooled object.
        Parameters:
        pooledObject - The pooled object that this instance will represent
        Throws:
        java.lang.NullPointerException - if obj is null