public abstract static class FileProtector.ProtectedFileSet extends Object
FileProtector.addFileProtection(com.sleepycat.je.cleaner.FileProtector.ProtectedFileSet),
its set of protected files (the set for which isProtected(java.lang.Long, com.sleepycat.je.cleaner.FileProtector.ReservedFileInfo)
returns true) may only be changed by shrinking the set. Files may not be
added to the set of protected files. (One exception is that newly
created files are effectively to a file set defined as an opened ended
range.)
2. Shrinking the protected set can be done without synchronization on
FileProtector. However, implementations should ensure that changes made
in one thread are visible to all threads.
The intention is to allow protecting a set of files that are to be
processed in some way, and allow easily shrinking this set as the files
are processed, so that the processed files may be deleted. Changes to
the protected set should be visible to all threads so that periodic disk
space reclamation tasks can delete unprotected files ASAP. FileProtector.ProtectedFileRange is a simple class that meets these requirements.Copyright © 2024. All rights reserved.