|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ResourceHandler<T>
A resource handler to manage the resource life cycle. It enables to control the creation of the resource and to make specific actions on the getting a resource from the pool and on the putting of a resource to the pool
| Method Summary | |
|---|---|
T |
create()
Create a resource. |
void |
onRelease(T resource)
Call when putting a resource back in the pool (releasing) |
void |
onTake(T resource)
Call when getting a resource from the pool (taking) |
| Method Detail |
|---|
T create()
void onTake(T resource)
resource - the resource got from the poolvoid onRelease(T resource)
resource - The resource put back in the pool
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||