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.- Version:
- 2024-01-24
- Autor:
- Silvan Wyss
-
Methodenübersicht
Von Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrol.closecontroller.CloseStateRequestable
isOpenVon Schnittstelle geerbte Methoden ch.nolix.coreapi.resourcecontrol.closecontroller.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.
-