Class BufferedRereadableContent.BrcCleanup

java.lang.Object
de.aristaflow.adept2.util.CleanupTask.AbstractCleanupTask<RuntimeException>
de.aristaflow.adept2.util.io.BufferedRereadableContent.BrcCleanup
All Implemented Interfaces:
CleanupTask<RuntimeException>
Enclosing class:
BufferedRereadableContent

protected static final class BufferedRereadableContent.BrcCleanup extends CleanupTask.AbstractCleanupTask<RuntimeException>
The clean-up task deleting the temporary file if appropriate
  • Field Details

    • file

      protected final org.apache.commons.lang3.mutable.Mutable<File> file
      BufferedRereadableContent.file
  • Constructor Details

    • BrcCleanup

      protected BrcCleanup(BufferedRereadableContent brc)
      Creates a new clean-up for deleting the temporary file as post-mortem action of a BufferedRereadableContent.
      Parameters:
      brc - The BufferedRereadableContent of which to delete the temporary file if appropriate.
  • Method Details

    • cleanup

      public void cleanup(boolean explicit)
      Description copied from interface: CleanupTask
      Performs the actual clean-up. This method is only called by Cleanup and must NOT be called directly!
      Parameters:
      explicit - Whether the clean-up was triggered explicitly via Cleanup.clean(). Otherwise it was triggered implicitly as a post-mortem action by the object becoming phantom reachable.