This utility creates a background thread to handle file deletion. Each file to be deleted is registered with a handler object. When the handler object is garbage collected, the file is deleted.
In an environment with multiple class loaders (a servlet container, for example), you should consider stopping the background thread if it is no longer needed. This is done by invoking the method {@link #exitWhenFinished}, typically in {@link javax.servlet.ServletContextListener#contextDestroyed} or similar. @version $Id: FileCleaningTracker.java 1563233 2014-01-31 19:58:50Z ggregory $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|