Index

A B C D E F G H I K M O P R S T U V W 
All Classes and Interfaces|All Packages

A

action() - Method in record class com.cotani.cooldown.api.CooldownKey
Returns the value of the action record component.
action(CooldownAction) - Method in interface com.cotani.cooldown.api.CooldownOperation
 
action(String) - Method in interface com.cotani.cooldown.api.CooldownOperation
 
active() - Method in interface com.cotani.cooldown.api.CooldownOperation
 
activeCooldowns() - Method in record class com.cotani.cooldown.cache.PlayerCooldowns
Returns the value of the activeCooldowns record component.
activeCooldownsUnsafe() - Method in record class com.cotani.cooldown.cache.PlayerCooldowns
 
AddCooldownLeaseTokenMigration - Class in com.cotani.cooldown.storage
Adds the winner token used by atomic distributed cooldown acquisition.
AddCooldownLeaseTokenMigration() - Constructor for class com.cotani.cooldown.storage.AddCooldownLeaseTokenMigration
 
allow(UUID, String, Duration) - Method in interface com.cotani.cooldown.api.CooldownService
 
allowed() - Method in record class com.cotani.cooldown.api.CooldownResult
 
allowed(CooldownKey) - Static method in record class com.cotani.cooldown.api.CooldownResult
 
ALLOWED - Enum constant in enum class com.cotani.cooldown.api.CooldownState
 
availableTokens() - Method in interface com.cotani.cooldown.api.TokenBucket
 

B

bucket(K) - Method in interface com.cotani.cooldown.api.TokenBucketRateLimiter
 

C

cacheBacked(PlayerDataCache) - Static method in class com.cotani.cooldown.CotaniCooldowns
 
CacheCooldownStore - Class in com.cotani.cooldown.cache
 
CacheCooldownStore(PlayerDataCache) - Constructor for class com.cotani.cooldown.cache.CacheCooldownStore
 
capacity() - Method in interface com.cotani.cooldown.api.TokenBucket
 
check() - Method in interface com.cotani.cooldown.api.CooldownOperation
 
checkAndStart() - Method in interface com.cotani.cooldown.api.CooldownOperation
 
checkAndStart(CooldownKey, Duration, Clock) - Method in interface com.cotani.cooldown.api.CooldownStore
 
checkAndStart(CooldownKey, Duration, Clock) - Method in class com.cotani.cooldown.cache.CacheCooldownStore
 
checkAndStart(CooldownKey, Duration, Instant) - Method in record class com.cotani.cooldown.cache.PlayerCooldowns
 
checkAndStartAsync(CooldownKey, Duration) - Method in interface com.cotani.cooldown.api.DistributedCooldownService
 
clear() - Method in interface com.cotani.cooldown.api.CooldownStore
 
clear() - Method in interface com.cotani.cooldown.api.TokenBucketRateLimiter
 
clear() - Method in class com.cotani.cooldown.cache.CacheCooldownStore
 
clearAll() - Method in interface com.cotani.cooldown.api.CooldownService
 
clearAllAsync() - Method in interface com.cotani.cooldown.api.DistributedCooldownService
 
clearExpired() - Method in interface com.cotani.cooldown.api.CooldownService
 
clearExpiredAsync() - Method in interface com.cotani.cooldown.api.DistributedCooldownService
 
close() - Method in interface com.cotani.cooldown.api.DistributedCooldownService
 
com.cotani.cooldown - package com.cotani.cooldown
 
com.cotani.cooldown.api - package com.cotani.cooldown.api
 
com.cotani.cooldown.cache - package com.cotani.cooldown.cache
 
com.cotani.cooldown.config - package com.cotani.cooldown.config
 
com.cotani.cooldown.paper - package com.cotani.cooldown.paper
 
com.cotani.cooldown.storage - package com.cotani.cooldown.storage
 
CooldownAction - Record Class in com.cotani.cooldown.api
 
CooldownAction(String) - Constructor for record class com.cotani.cooldown.api.CooldownAction
Creates an instance of a CooldownAction record class.
CooldownEntry - Record Class in com.cotani.cooldown.api
 
CooldownEntry(CooldownKey, Instant, Instant) - Constructor for record class com.cotani.cooldown.api.CooldownEntry
Creates an instance of a CooldownEntry record class.
CooldownKey - Record Class in com.cotani.cooldown.api
 
CooldownKey(CooldownTarget, CooldownAction) - Constructor for record class com.cotani.cooldown.api.CooldownKey
Creates an instance of a CooldownKey record class.
CooldownOperation - Interface in com.cotani.cooldown.api
 
CooldownPolicy - Interface in com.cotani.cooldown.api
 
CooldownPolicySerializer - Class in com.cotani.cooldown.config
 
CooldownPolicySerializer(ConfigSerializer) - Constructor for class com.cotani.cooldown.config.CooldownPolicySerializer
 
CooldownResult - Record Class in com.cotani.cooldown.api
 
CooldownResult(CooldownState, CooldownKey, Duration, Instant) - Constructor for record class com.cotani.cooldown.api.CooldownResult
Creates an instance of a CooldownResult record class.
CooldownService - Interface in com.cotani.cooldown.api
 
CooldownState - Enum Class in com.cotani.cooldown.api
 
CooldownStore - Interface in com.cotani.cooldown.api
 
CooldownTarget - Interface in com.cotani.cooldown.api
 
CooldownTargets - Class in com.cotani.cooldown.api
 
CotaniCooldownDenyEvent - Class in com.cotani.cooldown.paper
 
CotaniCooldownDenyEvent(CooldownKey, Duration, Instant) - Constructor for class com.cotani.cooldown.paper.CotaniCooldownDenyEvent
 
CotaniCooldowns - Class in com.cotani.cooldown
 
CotaniCooldownStartEvent - Class in com.cotani.cooldown.paper
 
CotaniCooldownStartEvent(CooldownKey, Duration) - Constructor for class com.cotani.cooldown.paper.CotaniCooldownStartEvent
 
create(long, double) - Static method in interface com.cotani.cooldown.api.TokenBucketRateLimiter
 
CreateCooldownsTableMigration - Class in com.cotani.cooldown.storage
 
CreateCooldownsTableMigration() - Constructor for class com.cotani.cooldown.storage.CreateCooldownsTableMigration
 

D

delete(UUID) - Method in class com.cotani.cooldown.cache.SqlCooldownRepository
 
denied() - Method in record class com.cotani.cooldown.api.CooldownResult
 
denied(CooldownKey, Duration, Instant) - Static method in record class com.cotani.cooldown.api.CooldownResult
 
DENIED - Enum constant in enum class com.cotani.cooldown.api.CooldownState
 
deny(UUID, String, Duration) - Method in interface com.cotani.cooldown.api.CooldownService
 
description() - Method in class com.cotani.cooldown.storage.AddCooldownLeaseTokenMigration
 
description() - Method in class com.cotani.cooldown.storage.CreateCooldownsTableMigration
 
distributed(CotaniStorage, PaperTaskScheduler) - Static method in class com.cotani.cooldown.CotaniCooldowns
 
distributed(CotaniStorage, PaperTaskScheduler, Clock, Duration) - Static method in class com.cotani.cooldown.CotaniCooldowns
 
DistributedCooldownService - Interface in com.cotani.cooldown.api
Non-blocking cooldown service backed by a shared database.
duration() - Method in interface com.cotani.cooldown.api.CooldownPolicy
 
duration(Duration) - Method in interface com.cotani.cooldown.api.CooldownOperation
 

E

equals(Object) - Method in record class com.cotani.cooldown.api.CooldownAction
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.cooldown.api.CooldownEntry
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.cooldown.api.CooldownKey
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.cooldown.api.CooldownResult
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.cooldown.api.GlobalCooldownTarget
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.cooldown.api.ResourceCooldownTarget
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.cooldown.api.UserCooldownTarget
Indicates whether some other object is "equal to" this one.
equals(Object) - Method in record class com.cotani.cooldown.cache.PlayerCooldowns
Indicates whether some other object is "equal to" this one.
expired(Clock) - Method in record class com.cotani.cooldown.api.CooldownEntry
 
expired(Instant) - Method in record class com.cotani.cooldown.api.CooldownEntry
 
expiresAt() - Method in record class com.cotani.cooldown.api.CooldownEntry
Returns the value of the expiresAt record component.
expiresAt() - Method in record class com.cotani.cooldown.api.CooldownResult
Returns the value of the expiresAt record component.
expiresAtOptional() - Method in record class com.cotani.cooldown.api.CooldownResult
 

F

find(CooldownKey) - Method in interface com.cotani.cooldown.api.CooldownStore
 
find(CooldownKey) - Method in class com.cotani.cooldown.cache.CacheCooldownStore
 
find(String) - Method in record class com.cotani.cooldown.cache.PlayerCooldowns
 
find(UUID) - Method in class com.cotani.cooldown.cache.SqlCooldownRepository
 
findAsync(CooldownKey) - Method in interface com.cotani.cooldown.api.DistributedCooldownService
 

G

getDuration() - Method in class com.cotani.cooldown.paper.CotaniCooldownStartEvent
 
getExpiresAt() - Method in class com.cotani.cooldown.paper.CotaniCooldownDenyEvent
 
getHandlerList() - Static method in class com.cotani.cooldown.paper.CotaniCooldownDenyEvent
 
getHandlerList() - Static method in class com.cotani.cooldown.paper.CotaniCooldownStartEvent
 
getHandlers() - Method in class com.cotani.cooldown.paper.CotaniCooldownDenyEvent
 
getHandlers() - Method in class com.cotani.cooldown.paper.CotaniCooldownStartEvent
 
getKey() - Method in class com.cotani.cooldown.paper.CotaniCooldownDenyEvent
 
getKey() - Method in class com.cotani.cooldown.paper.CotaniCooldownStartEvent
 
getRemaining() - Method in class com.cotani.cooldown.paper.CotaniCooldownDenyEvent
 
global() - Method in interface com.cotani.cooldown.api.CooldownService
 
global() - Static method in class com.cotani.cooldown.api.CooldownTargets
 
GlobalCooldownTarget - Record Class in com.cotani.cooldown.api
 
GlobalCooldownTarget() - Constructor for record class com.cotani.cooldown.api.GlobalCooldownTarget
Creates an instance of a GlobalCooldownTarget record class.

H

hashCode() - Method in record class com.cotani.cooldown.api.CooldownAction
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.cooldown.api.CooldownEntry
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.cooldown.api.CooldownKey
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.cooldown.api.CooldownResult
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.cooldown.api.GlobalCooldownTarget
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.cooldown.api.ResourceCooldownTarget
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.cooldown.api.UserCooldownTarget
Returns a hash code value for this object.
hashCode() - Method in record class com.cotani.cooldown.cache.PlayerCooldowns
Returns a hash code value for this object.

I

inMemory() - Static method in class com.cotani.cooldown.CotaniCooldowns
 
inMemory(Clock) - Static method in class com.cotani.cooldown.CotaniCooldowns
 

K

key() - Method in record class com.cotani.cooldown.api.CooldownEntry
Returns the value of the key record component.
key() - Method in record class com.cotani.cooldown.api.CooldownResult
Returns the value of the key record component.

M

migrate(Schema) - Method in class com.cotani.cooldown.storage.AddCooldownLeaseTokenMigration
 
migrate(Schema) - Method in class com.cotani.cooldown.storage.CreateCooldownsTableMigration
 
migrations() - Static method in class com.cotani.cooldown.CotaniCooldowns

O

of(long, double) - Static method in interface com.cotani.cooldown.api.TokenBucket
 
of(String) - Static method in record class com.cotani.cooldown.api.CooldownAction
 

P

PlayerCooldowns - Record Class in com.cotani.cooldown.cache
 
PlayerCooldowns(UUID) - Constructor for record class com.cotani.cooldown.cache.PlayerCooldowns
 
PlayerCooldowns(UUID, Map) - Constructor for record class com.cotani.cooldown.cache.PlayerCooldowns
Creates an instance of a PlayerCooldowns record class.
playerId() - Method in record class com.cotani.cooldown.cache.PlayerCooldowns
Returns the value of the playerId record component.
policy(CooldownPolicy) - Method in interface com.cotani.cooldown.api.CooldownOperation
 
put(CooldownEntry) - Method in record class com.cotani.cooldown.cache.PlayerCooldowns
 

R

read(ConfigValue) - Method in class com.cotani.cooldown.config.CooldownPolicySerializer
 
refillRatePerSecond() - Method in interface com.cotani.cooldown.api.TokenBucket
 
remaining() - Method in interface com.cotani.cooldown.api.CooldownOperation
 
remaining() - Method in record class com.cotani.cooldown.api.CooldownResult
Returns the value of the remaining record component.
remaining(Clock) - Method in record class com.cotani.cooldown.api.CooldownEntry
 
remaining(Instant) - Method in record class com.cotani.cooldown.api.CooldownEntry
 
remove() - Method in interface com.cotani.cooldown.api.CooldownOperation
 
remove(CooldownKey) - Method in interface com.cotani.cooldown.api.CooldownStore
 
remove(CooldownKey) - Method in class com.cotani.cooldown.cache.CacheCooldownStore
 
remove(CooldownTarget, CooldownAction) - Method in interface com.cotani.cooldown.api.CooldownService
 
remove(String) - Method in record class com.cotani.cooldown.cache.PlayerCooldowns
 
remove(K) - Method in interface com.cotani.cooldown.api.TokenBucketRateLimiter
 
removeAsync(CooldownKey) - Method in interface com.cotani.cooldown.api.DistributedCooldownService
 
removeExpired(Clock) - Method in interface com.cotani.cooldown.api.CooldownStore
 
removeExpired(Clock) - Method in class com.cotani.cooldown.cache.CacheCooldownStore
 
resource(String) - Method in interface com.cotani.cooldown.api.CooldownService
 
resource(String) - Static method in class com.cotani.cooldown.api.CooldownTargets
 
ResourceCooldownTarget - Record Class in com.cotani.cooldown.api
 
ResourceCooldownTarget(String) - Constructor for record class com.cotani.cooldown.api.ResourceCooldownTarget
Creates an instance of a ResourceCooldownTarget record class.
resourceId() - Method in record class com.cotani.cooldown.api.ResourceCooldownTarget
Returns the value of the resourceId record component.
restart() - Method in interface com.cotani.cooldown.api.CooldownOperation
 

S

save(CooldownEntry) - Method in interface com.cotani.cooldown.api.CooldownStore
 
save(CooldownEntry) - Method in class com.cotani.cooldown.cache.CacheCooldownStore
 
save(UUID, PlayerCooldowns) - Method in class com.cotani.cooldown.cache.SqlCooldownRepository
 
sizeAsync() - Method in interface com.cotani.cooldown.api.DistributedCooldownService
 
SqlCooldownRepository - Class in com.cotani.cooldown.cache
 
SqlCooldownRepository(CotaniStorage) - Constructor for class com.cotani.cooldown.cache.SqlCooldownRepository
 
start() - Method in interface com.cotani.cooldown.api.CooldownOperation
 
startedAt() - Method in record class com.cotani.cooldown.api.CooldownEntry
Returns the value of the startedAt record component.
state() - Method in record class com.cotani.cooldown.api.CooldownResult
Returns the value of the state record component.

T

target() - Method in record class com.cotani.cooldown.api.CooldownKey
Returns the value of the target record component.
target(CooldownTarget) - Method in interface com.cotani.cooldown.api.CooldownService
 
tokenBucket(long, double) - Static method in class com.cotani.cooldown.CotaniCooldowns
 
TokenBucket - Interface in com.cotani.cooldown.api
 
tokenBucketRateLimiter(long, double) - Static method in class com.cotani.cooldown.CotaniCooldowns
 
TokenBucketRateLimiter<K> - Interface in com.cotani.cooldown.api
 
toString() - Method in record class com.cotani.cooldown.api.CooldownAction
Returns a string representation of this record class.
toString() - Method in record class com.cotani.cooldown.api.CooldownEntry
Returns a string representation of this record class.
toString() - Method in record class com.cotani.cooldown.api.CooldownKey
Returns a string representation of this record class.
toString() - Method in record class com.cotani.cooldown.api.CooldownResult
Returns a string representation of this record class.
toString() - Method in record class com.cotani.cooldown.api.GlobalCooldownTarget
Returns a string representation of this record class.
toString() - Method in record class com.cotani.cooldown.api.ResourceCooldownTarget
Returns a string representation of this record class.
toString() - Method in record class com.cotani.cooldown.api.UserCooldownTarget
Returns a string representation of this record class.
toString() - Method in record class com.cotani.cooldown.cache.PlayerCooldowns
Returns a string representation of this record class.
tryAcquire(K) - Method in interface com.cotani.cooldown.api.TokenBucketRateLimiter
 
tryAcquire(K, long) - Method in interface com.cotani.cooldown.api.TokenBucketRateLimiter
 
tryConsume() - Method in interface com.cotani.cooldown.api.TokenBucket
 
tryConsume(long) - Method in interface com.cotani.cooldown.api.TokenBucket
 
type() - Method in class com.cotani.cooldown.config.CooldownPolicySerializer
 

U

user(UUID) - Method in interface com.cotani.cooldown.api.CooldownService
 
user(UUID) - Static method in class com.cotani.cooldown.api.CooldownTargets
 
UserCooldownTarget - Record Class in com.cotani.cooldown.api
 
UserCooldownTarget(UUID) - Constructor for record class com.cotani.cooldown.api.UserCooldownTarget
Creates an instance of a UserCooldownTarget record class.
userId() - Method in record class com.cotani.cooldown.api.UserCooldownTarget
Returns the value of the userId record component.

V

value() - Method in record class com.cotani.cooldown.api.CooldownAction
Returns the value of the value record component.
valueOf(String) - Static method in enum class com.cotani.cooldown.api.CooldownState
Returns the enum constant of this class with the specified name.
values() - Static method in enum class com.cotani.cooldown.api.CooldownState
Returns an array containing the constants of this enum class, in the order they are declared.
version() - Method in class com.cotani.cooldown.storage.AddCooldownLeaseTokenMigration
 
version() - Method in class com.cotani.cooldown.storage.CreateCooldownsTableMigration
 

W

write(CooldownPolicy) - Method in class com.cotani.cooldown.config.CooldownPolicySerializer
 
A B C D E F G H I K M O P R S T U V W 
All Classes and Interfaces|All Packages