Interface CloseList


  • public interface CloseList
    • 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.