Interface ServerLoader

All Known Implementing Classes:
AtomicServerLoader, ServerDBLoader, ServerFileLoader

public interface ServerLoader
Interface for operating on server information.
  • Method Summary

    Modifier and Type
    Method
    Description
    load​(ServerUUID serverUUID)
    Load the server information.
    void
    save​(Server information)
    Save the server information.
  • Method Details

    • load

      Optional<Server> load(ServerUUID serverUUID)
      Load the server information.
      Parameters:
      serverUUID - UUID of the server, null if not known
      Returns:
      Optional of the saved information or empty if it has not been stored.
      Throws:
      EnableException - When the loading fails
    • save

      void save(Server information)
      Save the server information.
      Parameters:
      information - Information to save.
      Throws:
      EnableException - When the saving fails