Interface ServerLoader
-
- All Known Implementing Classes:
ServerDBLoader
,ServerFileLoader
public interface ServerLoader
Interface for operating on server information.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.util.Optional<Server>
load(ServerUUID serverUUID)
Load the server information.void
save(Server information)
Save the server information.
-
-
-
Method Detail
-
load
java.util.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
-
-