Interface CloseList
-
public interface CloseList
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanaddToCloseList(AutoCloseable o, String name, boolean log)Close the object when the job completes.voidclose()Close all objects in the close list.voidforceCloseListLogging()Force logging of all objects in close list.
-
-
-
Method Detail
-
addToCloseList
boolean addToCloseList(AutoCloseable o, String name, boolean log)
Close the object when the job completes.- Parameters:
o- the object to close.name- the name of the object.log- should information about this object be logged by default.- Returns:
- true if the object was added, false if it was not closable.
-
forceCloseListLogging
void forceCloseListLogging()
Force logging of all objects in close list.
-
close
void close()
Close all objects in the close list.
-
-