Removing files based on this
article
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate File
private static boolean
private static final Logger
private final RandomAccessFile
private static Queue
<WeakDataFile> private static ReferenceQueue
<DataFile> private static int
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class java.lang.ref.Reference
clear, clone, enqueue, get, isEnqueued, reachabilityFence
-
Field Details
-
LOGGER
-
TIMEOUT
private static int TIMEOUT -
refQueue
-
refList
-
file
-
raf
-
hasCleanUpExecutor
private static boolean hasCleanUpExecutor
-
-
Constructor Details
-
WeakDataFile
-
-
Method Details
-
read
void read(long pointer, byte[] buf, int offset, int length) -
writeTo
long writeTo(long pointer, byte[] data, int offset, int length) -
close
void close() -
renameTo
-
drainRefQueueBounded
static void drainRefQueueBounded()
-