public static interface SimplePool.PoolItemCallback<T>
Modifier and Type | Method and Description |
---|---|
T |
createForPool()
Called by the pool when a new instance is required to populate the pool.
|
boolean |
isStale(T item)
Called by the pool when an idle item is retrieved from the pool.
|
void |
removedFromPool(T item)
Called by the pool when an item is forcibly removed from the pool - for example
when the pool size is reduced.
|
T createForPool()
boolean isStale(T item)
item
- The item.void removedFromPool(T item)
item
- The item.