Class NicknameCache
- java.lang.Object
-
- com.djrapitops.plan.gathering.cache.NicknameCache
-
-
Constructor Summary
Constructors Constructor Description NicknameCache(DBSystem dbSystem, ServerInfo serverInfo, ErrorLogger errorLogger)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
disable()
Performs disable actions for the subsystemvoid
enable()
Performs enable actions for the subsystem.java.util.Optional<java.lang.String>
getDisplayName(java.util.UUID uuid)
Used to get the player display name in the cache.void
removeDisplayName(java.util.UUID uuid)
-
-
-
Constructor Detail
-
NicknameCache
@Inject public NicknameCache(DBSystem dbSystem, ServerInfo serverInfo, ErrorLogger errorLogger)
-
-
Method Detail
-
enable
public void enable()
Description copied from interface:SubSystem
Performs enable actions for the subsystem.
-
disable
public void disable()
Description copied from interface:SubSystem
Performs disable actions for the subsystem
-
removeDisplayName
public void removeDisplayName(java.util.UUID uuid)
-
getDisplayName
public java.util.Optional<java.lang.String> getDisplayName(java.util.UUID uuid)
Used to get the player display name in the cache.If not cached, one from the database will be cached.
- Parameters:
uuid
- UUID of the player.- Returns:
- latest displayName or null if none are saved.
-
-