T
- protected static class AsyncObjectPool.PoolMemberHolder<T> extends Object implements Comparable<AsyncObjectPool.PoolMemberHolder<T>>
Modifier and Type | Field and Description |
---|---|
protected long |
lastErrorLogTime |
Modifier | Constructor and Description |
---|---|
protected |
AsyncObjectPool.PoolMemberHolder() |
Modifier and Type | Method and Description |
---|---|
int |
compareTo(AsyncObjectPool.PoolMemberHolder<T> o)
Identity System.identityHashCode base comparator on members so that Binary Search can be used to locate a member.
|
long |
getLastBorrowTime()
Gets the last borrow time irrespective of whether it is currently in use or not
|
T |
getMember()
Gets the member.
|
int |
getRemovalStatus()
Returns the removal status in case the pool size is reduced using setPoolSize.
|
boolean |
isInUse()
Checks if pool member is currently in used (Borrowed)
|
public int compareTo(AsyncObjectPool.PoolMemberHolder<T> o)
compareTo
in interface Comparable<AsyncObjectPool.PoolMemberHolder<T>>
public T getMember()
public long getLastBorrowTime()
public boolean isInUse()
public int getRemovalStatus()
Copyright © 2013- Suresh Mahalingam. All Rights Reserved.