Class ServerDBLoader

  • All Implemented Interfaces:
    ServerLoader

    @Singleton
    public class ServerDBLoader
    extends java.lang.Object
    implements ServerLoader
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Optional<Server> load​(java.util.UUID serverUUID)
      Load the server information.
      void save​(Server server)
      Save the server information.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ServerDBLoader

        @Inject
        public ServerDBLoader​(DBSystem dbSystem)
    • Method Detail

      • load

        public java.util.Optional<Server> load​(java.util.UUID serverUUID)
        Description copied from interface: ServerLoader
        Load the server information.
        Specified by:
        load in interface ServerLoader
        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.