public class DirectoryCleanup
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static long |
DEFAULT_AGE_MILLIS
Default age, delete files not modified in this amount of time 2 hours
|
static long |
DEFAULT_INTIAL_DELAY_SECONDS
Run after 5 seconds, and then every 2 hours
|
static long |
DEFAULT_PERIOD_SECONDS |
Constructor and Description |
---|
DirectoryCleanup() |
Modifier and Type | Method and Description |
---|---|
void |
add(java.lang.String path) |
void |
add(java.lang.String path,
long age,
long delay,
long period,
java.util.concurrent.TimeUnit units) |
void |
shutdown() |
public static final long DEFAULT_AGE_MILLIS
public static final long DEFAULT_INTIAL_DELAY_SECONDS
public static final long DEFAULT_PERIOD_SECONDS