Class DownloadCacheCleaner
java.lang.Object
net.minecraft.server.packs.DownloadCacheCleaner
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final recordprivate static final record -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate static List<DownloadCacheCleaner.PathAndTime> listFilesWithModificationTimes(Path cacheDir) private static List<DownloadCacheCleaner.PathAndPriority> prioritizeFilesInDirs(List<DownloadCacheCleaner.PathAndTime> filesAndDates) static voidvacuumCacheDir(Path cacheDir, int maxFiles)
-
Field Details
-
LOGGER
private static final org.slf4j.Logger LOGGER
-
-
Constructor Details
-
DownloadCacheCleaner
public DownloadCacheCleaner()
-
-
Method Details
-
vacuumCacheDir
-
listFilesWithModificationTimes
private static List<DownloadCacheCleaner.PathAndTime> listFilesWithModificationTimes(Path cacheDir) throws IOException - Throws:
IOException
-
prioritizeFilesInDirs
private static List<DownloadCacheCleaner.PathAndPriority> prioritizeFilesInDirs(List<DownloadCacheCleaner.PathAndTime> filesAndDates)
-