Schnittstelle IResourcePool<R extends AutoCloseable>
- Typparameter:
R- is the type of the resources of aIResourcePool.
- Alle Superschnittstellen:
AutoCloseable, Closeable, CloseStateRequestable, GroupCloseable
- Alle bekannten Implementierungsklassen:
AbstractResourcePool, SqlConnectionPool
A
IResourcePool manages resources that are AutoCloseables.- Autor:
- Silvan Wyss
-
Methodenübersicht
Von Schnittstelle geerbte Methoden CloseStateRequestable
isOpenVon Schnittstelle geerbte Methoden GroupCloseable
close, createCloseDependencyTo, getStoredCloseController, isClosed, noteClose
-
Methodendetails
-
borrowResource
R borrowResource()- Gibt zurück:
- 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.
-