/** * Create a singleton path-clean-up queue. It can be used to delete * paths(directories/files) in a separate thread. This constructor creates a * clean-up thread and also starts it as a daemon. Callers can instantiate one * CleanupQueue per JVM and can use it for deleting paths. Use * {@link CleanupQueue#addToQueue(PathDeletionContext...)} to add paths for * deletion. */ public CleanupQueue() { synchronized (PathCleanupThread.class) { if (cleanupThread == null) { cleanupThread = new PathCleanupThread(); } } }
/** * Create a singleton path-clean-up queue. It can be used to delete * paths(directories/files) in a separate thread. This constructor creates a * clean-up thread and also starts it as a daemon. Callers can instantiate one * CleanupQueue per JVM and can use it for deleting paths. Use * {@link CleanupQueue#addToQueue(PathDeletionContext...)} to add paths for * deletion. */ public CleanupQueue() { synchronized (PathCleanupThread.class) { if (cleanupThread == null) { cleanupThread = new PathCleanupThread(); } } }
/** * Create a singleton path-clean-up queue. It can be used to delete * paths(directories/files) in a separate thread. This constructor creates a * clean-up thread and also starts it as a daemon. Callers can instantiate one * CleanupQueue per JVM and can use it for deleting paths. Use * {@link CleanupQueue#addToQueue(PathDeletionContext...)} to add paths for * deletion. */ public CleanupQueue() { synchronized (PathCleanupThread.class) { if (cleanupThread == null) { cleanupThread = new PathCleanupThread(); } } }
/** * Create a singleton path-clean-up queue. It can be used to delete * paths(directories/files) in a separate thread. This constructor creates a * clean-up thread and also starts it as a daemon. Callers can instantiate one * CleanupQueue per JVM and can use it for deleting paths. Use * {@link CleanupQueue#addToQueue(PathDeletionContext...)} to add paths for * deletion. */ public CleanupQueue() { synchronized (PathCleanupThread.class) { if (cleanupThread == null) { cleanupThread = new PathCleanupThread(); } } }
/** * Create a singleton path-clean-up queue. It can be used to delete * paths(directories/files) in a separate thread. This constructor creates a * clean-up thread and also starts it as a daemon. Callers can instantiate one * CleanupQueue per JVM and can use it for deleting paths. Use * {@link CleanupQueue#addToQueue(PathDeletionContext...)} to add paths for * deletion. */ public CleanupQueue() { synchronized (PathCleanupThread.class) { if (cleanupThread == null) { cleanupThread = new PathCleanupThread(); } } }
/** * Create a singleton path-clean-up queue. It can be used to delete * paths(directories/files) in a separate thread. This constructor creates a * clean-up thread and also starts it as a daemon. Callers can instantiate one * CleanupQueue per JVM and can use it for deleting paths. Use * {@link CleanupQueue#addToQueue(PathDeletionContext...)} to add paths for * deletion. */ public CleanupQueue() { synchronized (PathCleanupThread.class) { if (cleanupThread == null) { cleanupThread = new PathCleanupThread(); } } }