Class CooldownRepository
java.lang.Object
net.flectone.pulse.data.repository.CooldownRepository
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionCooldownRepository(com.google.common.cache.Cache<CooldownRepository.CooldownKey, Long> cooldownCache, ProxyRegistry proxyRegistry, ProxySender proxySender, TaskScheduler taskScheduler) -
Method Summary
Modifier and TypeMethodDescriptionlonggetTimeLeft(UUID playerUUID, Cooldown cooldown, String cooldownOwner) voidbooleanupdateCache(UUID playerUUID, String cooldownClass, long newExpireTime)
-
Constructor Details
-
CooldownRepository
@Inject public CooldownRepository(com.google.common.cache.Cache<CooldownRepository.CooldownKey, Long> cooldownCache, ProxyRegistry proxyRegistry, ProxySender proxySender, TaskScheduler taskScheduler)
-
-
Method Details
-
getTimeLeft
-
updateCache
-
syncProxy
-