Schnittstelle IClosePool
- Alle bekannten Implementierungsklassen:
UncloseableClosePool
public interface IClosePool
- Version:
- 2022-07-08
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoidaddElements(IContainer<GroupCloseable> elements) Adds the given elements to the currentIClosePool.voidCloses the elements of the currentIClosePoolif the state of the currentIClosePoolisCloseState.OPEN.getState()
-
Methodendetails
-
addElements
Adds the given elements to the currentIClosePool.- Parameter:
elements-- Löst aus:
RuntimeException- if one of the given elements is null.RuntimeException- if the currentIClosePoolcontains already one of the given elements.
-
closeElementsIfStateIsOpen
void closeElementsIfStateIsOpen()Closes the elements of the currentIClosePoolif the state of the currentIClosePoolisCloseState.OPEN. -
getStoredElements
IContainer<GroupCloseable> getStoredElements()- Gibt zurück:
- the elements of the current
IClosePool.
-
getState
CloseState getState()- Gibt zurück:
- the state of the current
IClosePool.
-