Class ModernUUIDCache

java.lang.Object
com.earth2me.essentials.userstorage.ModernUUIDCache

public class ModernUUIDCache extends Object
  • Constructor Details

    • ModernUUIDCache

      public ModernUUIDCache(IEssentials ess)
  • Method Details

    • getCachedUUID

      protected UUID getCachedUUID(String name)
    • getCachedUUIDs

      protected Set<UUID> getCachedUUIDs()
    • getNameCache

      protected Map<String,UUID> getNameCache()
    • getCacheSize

      protected int getCacheSize()
    • getSanitizedName

      protected String getSanitizedName(String name)
    • updateCache

      protected void updateCache(UUID uuid, String name)
    • removeCache

      protected void removeCache(UUID uuid)
    • blockingSave

      protected void blockingSave()
    • writeUuidCache

      public static void writeUuidCache(File file, Set<UUID> uuids) throws IOException
      Throws:
      IOException
    • writeNameUuidMap

      public static void writeNameUuidMap(File file, Map<String,UUID> nameToUuidMap) throws IOException
      Throws:
      IOException
    • shutdown

      public void shutdown()