Class ModulePlayerDataLoader
-
- All Implemented Interfaces:
-
org.bukkit.event.Listener
public final class ModulePlayerDataLoader implements Listener
-
-
Field Summary
Fields Modifier and Type Field Description private final ConcurrentHashMap<UUID, CompletableFuture<Void>>
cachedLoginData
private final ConcurrentHashMap<UUID, ScheduledFuture<?>>
scheduledClearCacheFutures
-
Constructor Summary
Constructors Constructor Description ModulePlayerDataLoader(StorageConfig storageConfig, ModuleManager moduleManager, CoreMessages messages)
-
Method Summary
Modifier and Type Method Description final ConcurrentHashMap<UUID, CompletableFuture<Void>>
getCachedLoginData()
final ConcurrentHashMap<UUID, ScheduledFuture<?>>
getScheduledClearCacheFutures()
final Unit
onPlayerLogin(AsyncPlayerPreLoginEvent event)
final Unit
onPlayerJoin(PlayerJoinEvent event)
final Unit
onPlayerQuit(PlayerQuitEvent event)
final Unit
shutdownScheduler()
-
-
Constructor Detail
-
ModulePlayerDataLoader
ModulePlayerDataLoader(StorageConfig storageConfig, ModuleManager moduleManager, CoreMessages messages)
-
-
Method Detail
-
getCachedLoginData
final ConcurrentHashMap<UUID, CompletableFuture<Void>> getCachedLoginData()
-
getScheduledClearCacheFutures
final ConcurrentHashMap<UUID, ScheduledFuture<?>> getScheduledClearCacheFutures()
-
onPlayerLogin
final Unit onPlayerLogin(AsyncPlayerPreLoginEvent event)
-
onPlayerJoin
final Unit onPlayerJoin(PlayerJoinEvent event)
-
onPlayerQuit
final Unit onPlayerQuit(PlayerQuitEvent event)
-
shutdownScheduler
final Unit shutdownScheduler()
-
-
-
-