Class CooldownValidator.ExecutorMethodKey

java.lang.Object
com.ultikits.ultitools.abstracts.command.validation.validators.CooldownValidator.ExecutorMethodKey
Enclosing class:
CooldownValidator

private static final class CooldownValidator.ExecutorMethodKey extends Object
An executor-scoped cooldown key (#539): the executor instance, compared by identity and held weakly so an active cooldown never keeps an unloaded module's executor -- and with it the module's class loader -- reachable, plus method.toString(). Identity rather than equals: two executors of one class are two owners, whatever their class declares.
  • Field Details

    • executor

      private final WeakReference<Object> executor
    • methodKey

      private final String methodKey
    • hash

      private final int hash
  • Constructor Details

    • ExecutorMethodKey

      ExecutorMethodKey(Object executor, String methodKey)
  • Method Details