Interface CacheEntryScheduler<K,V>

Type Parameters:
K - the cache key type
V - the cache value type
All Known Implementing Classes:
CacheEntrySchedulerService

public interface CacheEntryScheduler<K,V>
A scheduler for a cache entry.
Author:
Paul Ferraro
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    cancelKey(K key)
    Cancels the entry with the specified key.
    boolean
    Indicates whether or not the entry with the specified cache key is scheduled.
    void
    Schedules the specified cache entry.
  • Method Details

    • scheduleEntry

      void scheduleEntry(Map.Entry<K,V> entry)
      Schedules the specified cache entry.
      Parameters:
      entry - a cache entry
    • cancelKey

      void cancelKey(K key)
      Cancels the entry with the specified key.
      Parameters:
      key - a cache key
    • containsKey

      boolean containsKey(K key)
      Indicates whether or not the entry with the specified cache key is scheduled.
      Parameters:
      key - a cache key
      Returns:
      true, if the entry with the specified cache key is scheduled, false otherwise.