org.apache.commons.io
private static final class FileCleaningTracker.Tracker extends PhantomReference
Field Summary | |
---|---|
FileDeleteStrategy | deleteStrategy
The strategy for deleting files. |
String | path
The full path to the file being tracked. |
Constructor Summary | |
---|---|
Tracker(String path, FileDeleteStrategy deleteStrategy, Object marker, ReferenceQueue queue)
Constructs an instance of this class from the supplied parameters.
|
Method Summary | |
---|---|
boolean | delete()
Deletes the file associated with this tracker instance.
|
Parameters: path the full path to the file to be tracked, not null deleteStrategy the strategy to delete the file, null means normal marker the marker object used to track the file, not null queue the queue on to which the tracker will be pushed, not null
Returns: true
if the file was deleted successfully;
false
otherwise.