Class SQLiteUUIDService

java.lang.Object
com.plotsquared.bukkit.uuid.SQLiteUUIDService
All Implemented Interfaces:
com.plotsquared.core.uuid.UUIDService, Consumer<List<com.plotsquared.core.uuid.UUIDMapping>>

public class SQLiteUUIDService extends Object implements com.plotsquared.core.uuid.UUIDService, Consumer<List<com.plotsquared.core.uuid.UUIDMapping>>
UUID service that uses the (legacy) SQL UUID cache
  • Constructor Details

    • SQLiteUUIDService

      public SQLiteUUIDService(String fileName)
  • Method Details

    • getNames

      public @NonNull List<com.plotsquared.core.uuid.UUIDMapping> getNames(@NonNull List<UUID> uuids)
      Specified by:
      getNames in interface com.plotsquared.core.uuid.UUIDService
    • getUUIDs

      public @NonNull List<com.plotsquared.core.uuid.UUIDMapping> getUUIDs(@NonNull List<String> usernames)
      Specified by:
      getUUIDs in interface com.plotsquared.core.uuid.UUIDService
    • accept

      public void accept(List<com.plotsquared.core.uuid.UUIDMapping> uuidWrappers)
      Specified by:
      accept in interface Consumer<List<com.plotsquared.core.uuid.UUIDMapping>>
    • getAll

      public @NonNull List<com.plotsquared.core.uuid.UUIDMapping> getAll()
      Read the entire cache at once
      Returns:
      All read mappings