Class AbstractWrapperResource<W extends AbstractWrapperResource<W,R>, R extends GroupCloseable>
java.lang.Object
ch.nolix.base.resourcecontrol.resourcepool.AbstractWrapperResource<W,R>
- Type Parameters:
W- is the type of aAbstractWrapperResource.R- is the type of the resource of aAbstractWrapperResource.
- All Implemented Interfaces:
Closeable, CloseStateRequestable, GroupCloseable, AutoCloseable
- Direct Known Subclasses:
WrapperSqlConnection
public abstract class AbstractWrapperResource<W extends AbstractWrapperResource<W,R>, R extends GroupCloseable>
extends Object
implements GroupCloseable
- Author:
- Silvan Wyss
-
Method Summary
Modifier and TypeMethodDescriptionfinal ICloseControllerfinal voidLets the currentGroupCloseablenote a close.Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CloseStateRequestable
isOpenMethods inherited from interface GroupCloseable
close, createCloseDependencyTo, isClosed
-
Method Details
-
getStoredCloseController
- Specified by:
getStoredCloseControllerin interfaceGroupCloseable- Returns:
- the
ICloseControllerof the currentGroupCloseable.
-
noteClose
public final void noteClose()Lets the currentGroupCloseablenote a close.- Specified by:
noteClosein interfaceGroupCloseable
-