Package de.aristaflow.adept2.util.io
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
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface de.aristaflow.adept2.util.CleanupTask
CleanupTask.AbstractCleanupTask<EX extends Exception>, CleanupTask.AtomicCloseTask, CleanupTask.CloseAndResetTask, CleanupTask.MutableCloseTask
-
-
Field Summary
Fields Modifier and Type Field Description protected org.apache.commons.lang3.mutable.Mutable<File>
file
-
Fields inherited from class de.aristaflow.adept2.util.CleanupTask.AbstractCleanupTask
descriptor, logger
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
BrcCleanup(BufferedRereadableContent brc)
Creates a new clean-up for deleting the temporary file as post-mortem action of aBufferedRereadableContent
.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
cleanup(boolean explicit)
Performs the actual clean-up.-
Methods inherited from class de.aristaflow.adept2.util.CleanupTask.AbstractCleanupTask
getDescriptor
-
-
-
-
Field Detail
-
file
protected final org.apache.commons.lang3.mutable.Mutable<File> file
-
-
Constructor Detail
-
BrcCleanup
protected BrcCleanup(BufferedRereadableContent brc)
Creates a new clean-up for deleting the temporary file as post-mortem action of aBufferedRereadableContent
.- Parameters:
brc
- TheBufferedRereadableContent
of which to delete the temporary file if appropriate.
-
-
Method Detail
-
cleanup
public void cleanup(boolean explicit)
Description copied from interface:CleanupTask
Performs the actual clean-up. This method is only called byCleanup
and must NOT be called directly!- Parameters:
explicit
- Whether the clean-up was triggered explicitly viaCleanup.clean()
. Otherwise it was triggered implicitly as a post-mortem action by the object becoming phantom reachable.
-
-