- abandoned
void abandoned()
Marks the pooled object as abandoned.
- allocate
bool allocate()
- allocate
bool allocate(T obj)
- borrowedCount
long borrowedCount()
Get the number of times this object has been borrowed.
@return The number of times this object has been borrowed.
- createTime
SysTime createTime()
Undocumented in source. Be warned that the author may not have intended to support it.
- getObject
T getObject()
Obtains the underlying object that is wrapped by this instance of
{@link PooledObject}.
- id
size_t id()
Undocumented in source. Be warned that the author may not have intended to support it.
- invalidate
void invalidate()
Sets the state to {@link PooledObjectState#INVALID INVALID}
- isIdle
bool isIdle()
Undocumented in source. Be warned that the author may not have intended to support it.
- isInUse
bool isInUse()
Undocumented in source. Be warned that the author may not have intended to support it.
- isInvalid
bool isInvalid()
Undocumented in source. Be warned that the author may not have intended to support it.
- isUnusable
bool isUnusable()
Undocumented in source. Be warned that the author may not have intended to support it.
- lastBorrowTime
SysTime lastBorrowTime()
Undocumented in source. Be warned that the author may not have intended to support it.
- lastReturnTime
SysTime lastReturnTime()
Undocumented in source. Be warned that the author may not have intended to support it.
- returning
bool returning()
Marks the object as returning to the pool.
- state
PooledObjectState state()
Returns the state of this object.
@return state
- toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.
Defines the wrapper that is used to track the additional information, such as state, for the pooled objects. <p> Implementations of this class are required to be thread-safe.
@param <T> the type of object in the pool