E
- Member Object Typepublic interface AsyncPoolMemberManager<E>
AsyncObjectPool
objects.Modifier and Type | Method and Description |
---|---|
void |
beforeReturn(E item)
Called before a member is returned back to the pool.
|
E |
createObject()
Create a new Object for using in pool.
|
void |
destroyObject(E item)
Called when an Object is removed from the pool because the pool size is reduced due to a setPoolSize call.
|
void |
onBorrow(E item)
Called when a borrowed member Object is handed over to the caller.
|
E createObject()
void destroyObject(E item)
item
- void onBorrow(E item)
item
- Borrowed itemvoid beforeReturn(E item)
item
- item being returnedCopyright © 2013- Suresh Mahalingam. All Rights Reserved.