Class UncloseableClosePool
java.lang.Object
ch.nolix.base.resourcecontrol.closecontroller.UncloseableClosePool
- All Implemented Interfaces:
IClosePool
- Author:
- Silvan Wyss
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddElements(IContainer<GroupCloseable> elements) Adds the given elements to the currentIClosePool.voidCloses the elements of the currentIClosePoolif the state of the currentIClosePoolisCloseState.OPEN.getState()
-
Constructor Details
-
UncloseableClosePool
public UncloseableClosePool()
-
-
Method Details
-
addElements
Adds the given elements to the currentIClosePool.- Specified by:
addElementsin interfaceIClosePool- Parameters:
elements-
-
closeElementsIfStateIsOpen
public void closeElementsIfStateIsOpen()Closes the elements of the currentIClosePoolif the state of the currentIClosePoolisCloseState.OPEN.- Specified by:
closeElementsIfStateIsOpenin interfaceIClosePool
-
getState
- Specified by:
getStatein interfaceIClosePool- Returns:
- the state of the current
IClosePool.
-
getStoredElements
- Specified by:
getStoredElementsin interfaceIClosePool- Returns:
- the elements of the current
IClosePool.
-