Klasse AbstractResourcePool<W extends AbstractWrapperResource<W,R> , R extends GroupCloseable>
java.lang.Object
ch.nolix.core.resourcecontrol.resourcepool.AbstractResourcePool<W,R>
- Alle implementierten Schnittstellen:
Closeable, CloseStateRequestable, GroupCloseable, IResourcePool<W>, AutoCloseable
- Bekannte direkte Unterklassen:
SqlConnectionPool
public abstract class AbstractResourcePool<W extends AbstractWrapperResource<W,R>, R extends GroupCloseable>
extends Object
implements IResourcePool<W>
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifikator und TypMethodeBeschreibungfinal Wprotected abstract Rprotected abstract WcreateWrapperResourceWithResource(R resource) final ICloseControllerfinal voidLets the currentGroupCloseablenote a close.Von Klasse geerbte Methoden Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitVon Schnittstelle geerbte Methoden CloseStateRequestable
isOpenVon Schnittstelle geerbte Methoden GroupCloseable
close, createCloseDependencyTo, isClosed
-
Konstruktordetails
-
AbstractResourcePool
public AbstractResourcePool()
-
-
Methodendetails
-
borrowResource
- Angegeben von:
borrowResourcein SchnittstelleIResourcePool<W extends AbstractWrapperResource<W,R>> - 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.
-
getStoredCloseController
- Angegeben von:
getStoredCloseControllerin SchnittstelleGroupCloseable- Gibt zurück:
- the
ICloseControllerof the currentGroupCloseable.
-
noteClose
public final void noteClose()Beschreibung aus Schnittstelle kopiert:GroupCloseableLets the currentGroupCloseablenote a close.- Angegeben von:
noteClosein SchnittstelleGroupCloseable
-
createResource
-
createWrapperResourceWithResource
-