Interface IResourcePool<R extends AutoCloseable>
- Type Parameters:
R- is the type of the resources of aIResourcePool.
- All Superinterfaces:
AutoCloseable, Closeable, CloseStateRequestable, GroupCloseable
- All Known Implementing Classes:
AbstractResourcePool, SqlConnectionPool
A
IResourcePool manages resources that are AutoCloseables.- Author:
- Silvan Wyss
-
Method Summary
Methods inherited from interface CloseStateRequestable
isOpenMethods inherited from interface GroupCloseable
close, createCloseDependencyTo, getStoredCloseController, isClosed, noteClose
-
Method Details
-
borrowResource
R borrowResource()- Returns:
- resource from the current
IResourcePoolwhich will be borrowed. When The resource is closed its internal resource will be given back to the currentIResourcePooland will be available again.
-