Cooldowns
Manages cooldowns for keys of type K.
This class provides a way to track and enforce time-based intervals between actions associated with specific keys. It is thread-safe as it uses ConcurrentHashMap internally.
Parameters
K
the type of the key used to identify cooldowns
Functions
Link copied to clipboard
Periodically purges expired cooldowns and executes their callbacks.
Link copied to clipboard
Returns the remaining cooldown time in milliseconds for the specified key.