Package crow.game.login.api
Interface UserLoader
- All Known Implementing Classes:
MysqlUserLoader
public interface UserLoader
Interface for loading users.
-
Method Summary
-
Method Details
-
loadUser
Load a user.- Parameters:
username- The username- Returns:
- The user, if found, otherwise an empty Optional object.
- Throws:
Exception- if there is a non-missing user error loading the user.
-
loadUserByID
Load a user by its account ID- Parameters:
id- The identifier to use.- Returns:
- The user, if found, otherwise an empty Optional object.
- Throws:
Exception- if there is a non-missing user error loading the user.
-