Class ModernUUIDCache
java.lang.Object
com.earth2me.essentials.userstorage.ModernUUIDCache
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected void
protected UUID
getCachedUUID
(String name) protected int
protected String
getSanitizedName
(String name) protected void
removeCache
(UUID uuid) void
shutdown()
protected void
updateCache
(UUID uuid, String name) static void
writeNameUuidMap
(File file, Map<String, UUID> nameToUuidMap) static void
writeUuidCache
(File file, Set<UUID> uuids)
-
Constructor Details
-
ModernUUIDCache
-
-
Method Details
-
getCachedUUID
-
getCachedUUIDs
-
getNameCache
-
getCacheSize
protected int getCacheSize() -
getSanitizedName
-
updateCache
-
removeCache
-
blockingSave
protected void blockingSave() -
writeUuidCache
- Throws:
IOException
-
writeNameUuidMap
- Throws:
IOException
-
shutdown
public void shutdown()
-