Schnittstelle IClosePool
public interface IClosePool
- Version:
- 2022-07-08
- Autor:
- Silvan Wyss
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
addElements
(IContainer<GroupCloseable> elements) Adds the given elements to the currentIClosePool
.void
Closes the elements of the currentIClosePool
if the state of the currentIClosePool
isCloseState.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 currentIClosePool
contains already one of the given elements.
-
closeElementsIfStateIsOpen
void closeElementsIfStateIsOpen()Closes the elements of the currentIClosePool
if the state of the currentIClosePool
isCloseState.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
.
-