Class ServerDBLoader

java.lang.Object
com.djrapitops.plan.identification.storage.ServerDBLoader
All Implemented Interfaces:
ServerLoader

@Singleton public class ServerDBLoader extends Object implements ServerLoader
  • Constructor Details

    • ServerDBLoader

      @Inject public ServerDBLoader(DBSystem dbSystem)
  • Method Details

    • load

      public Optional<Server> load(ServerUUID serverUUID)
      Description copied from interface: ServerLoader
      Load the server information.
      Specified by:
      load in interface ServerLoader
      Parameters:
      serverUUID - UUID of the server, null if not known
      Returns:
      Optional of the saved information or empty if it has not been stored.
    • save

      public void save(Server server)
      Description copied from interface: ServerLoader
      Save the server information.
      Specified by:
      save in interface ServerLoader
      Parameters:
      server - Information to save.