Class ServerDBLoader
- java.lang.Object
-
- com.djrapitops.plan.identification.storage.ServerDBLoader
-
- All Implemented Interfaces:
ServerLoader
@Singleton public class ServerDBLoader extends java.lang.Object implements ServerLoader
-
-
Constructor Summary
Constructors Constructor Description ServerDBLoader(DBSystem dbSystem)
-
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.
-
-
-
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 interfaceServerLoader
- 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 interfaceServerLoader
- Parameters:
server
- Information to save.
-
-