private static final class FileCleaningTracker.Tracker
extends java.lang.ref.PhantomReference
| Modifier and Type | Field and Description |
|---|---|
private FileDeleteStrategy |
deleteStrategy
The strategy for deleting files.
|
private java.lang.String |
path
The full path to the file being tracked.
|
| Constructor and Description |
|---|
FileCleaningTracker.Tracker(java.lang.String path,
FileDeleteStrategy deleteStrategy,
java.lang.Object marker,
java.lang.ref.ReferenceQueue queue)
Constructs an instance of this class from the supplied parameters.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
delete()
Deletes the file associated with this tracker instance.
|
private final java.lang.String path
private final FileDeleteStrategy deleteStrategy
FileCleaningTracker.Tracker(java.lang.String path,
FileDeleteStrategy deleteStrategy,
java.lang.Object marker,
java.lang.ref.ReferenceQueue queue)
path - the full path to the file to be tracked, not nulldeleteStrategy - the strategy to delete the file, null means normalmarker - the marker object used to track the file, not nullqueue - the queue on to which the tracker will be pushed, not nullCopyright (c) 2002-2014 Apache Software Foundation