Modifier and Type | Class and Description |
---|---|
static class |
PathCleaner.State |
Thread.UncaughtExceptionHandler
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_CLEANER_PERIOD |
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
Constructor and Description |
---|
PathCleaner()
Constructor.
|
PathCleaner(long deletionPeriod)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addPath(Path path)
Add a single path for deletion
|
void |
addPath(Path[] paths)
Add an array of paths for deletion
|
void |
run() |
PathCleaner.State |
state() |
void |
terminate()
Terminate the path cleaner
|
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, yield
public PathCleaner()
public PathCleaner(long deletionPeriod)
deletionPeriod
- cleaner periodpublic void terminate()
public void addPath(Path path)
path
- path to deletepublic void addPath(Path[] paths)
paths
- paths to deletepublic PathCleaner.State state()
Copyright © 2017 Aspera Inc.. All rights reserved.