Interface ScheduledCommandCache

All Known Subinterfaces:
ScheduledCommandCache.StageableScheduledCommandCache, ScheduledCommandCache.StagedScheduledCommandCache
All Known Implementing Classes:
ScheduledCommandCache.NoopScheduledCommandCache

public interface ScheduledCommandCache
Represents a cache to be used by the ProcessingScheduleService, which allows it to cache which commands it has written and avoid writing them again until they've been removed from the cache.
  • Method Details

    • add

      void add(Intent intent, long key)
      Add the given intent and key pair to the cache.
      Parameters:
      intent - intent to cache
      key - key to cache
    • contains

      boolean contains(Intent intent, long key)
      Returns true if the given intent and key pair is already cached.
    • remove

      void remove(Intent intent, long key)
      Removes the given intent/key pair from the cache.
    • clear

      void clear()
      Clears the underlying cache of all intent/key pairs.