Class CooldownRepository.AbstractCooldownRepository<K>

java.lang.Object
org.incendo.cloud.processors.cooldown.CooldownRepository.AbstractCooldownRepository<K>
All Implemented Interfaces:
CooldownRepository<K>
Direct Known Subclasses:
CooldownRepository.CacheCooldownRepository, CooldownRepository.MapCooldownRepository
Enclosing interface:
CooldownRepository<K>

public abstract static class CooldownRepository.AbstractCooldownRepository<K> extends Object implements CooldownRepository<K>
  • Constructor Details

    • AbstractCooldownRepository

      public AbstractCooldownRepository()
  • Method Details

    • deleteCooldown

      public void deleteCooldown(@NonNull K key, @NonNull CooldownGroup group)
      Description copied from interface: CooldownRepository
      Deletes the cooldown identified by the given key belonging to the given group.

      If the profile is empty after the deletion, then the profile is deleted too.

      Specified by:
      deleteCooldown in interface CooldownRepository<K>
      Parameters:
      key - key identifying the profile
      group - group to delete