Thread.State, Thread.UncaughtExceptionHandlerMAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY| Constructor and Description |
|---|
GarbageCollector(File tmpDirectory)
Initializes the GarbageCollector
|
| Modifier and Type | Method and Description |
|---|---|
static void |
configGCFileLifetime(long filelifetime)
Sets the lifetime of each temporary file.
|
static void |
configReGCollectInterval(long reGCollectInterval)
Sets the interval in which the GarbageCollector searches for files to delete.
|
protected void |
forceTempFilesDeletion() |
void |
run() |
activeCount, checkAccess, clone, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yieldpublic GarbageCollector(File tmpDirectory)
tmpDirectory - The directory in which the GarbageCollector will garbage collect the files.public void run()
run in interface Runnablerun in class ThreadThread.run()protected void forceTempFilesDeletion()
public static void configGCFileLifetime(long filelifetime)
filelifetime - The lifetime of each temporary file.public static void configReGCollectInterval(long reGCollectInterval)
reGCollectInterval - The interval in which the GarbageCollector searches for files to delete.Copyright © 2014. All Rights Reserved.