public interface CloseRegistry
AutoCloseable
objects.
The AutoCloseable
objects can add themselves to the registry (so a close can be triggered later)
and should remove themselves when actually closed.Modifier and Type | Method and Description |
---|---|
void |
addClosable(java.lang.AutoCloseable c) |
void |
closeRetainedClosables() |
void |
removeClosable(java.lang.AutoCloseable c) |