Interface ResumeCache<K,​V>

  • Type Parameters:
    K - the type of the key
    V - the type of the offset value
    All Known Subinterfaces:
    MultiEntryCache<K,​V>, SingleEntryCache<K,​V>

    public interface ResumeCache<K,​V>
    This cache stored the resumed data from a ResumeStrategy.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void add​(K key, V offsetValue)
      Adds a value to the cache
      long capacity()
      Gets the cache pool size
      boolean contains​(K key, V entry)
      Whether the cache contains the key with the given entry value
      boolean isFull()
      Checks whether the cache is full
    • Method Detail

      • contains

        boolean contains​(K key,
                         V entry)
        Whether the cache contains the key with the given entry value
        Parameters:
        key - the key
        entry - the entry
        Returns:
        true if the key/entry pair is stored in the cache
      • add

        void add​(K key,
                 V offsetValue)
        Adds a value to the cache
        Parameters:
        key - the key to add
        offsetValue - the offset value
      • isFull

        boolean isFull()
        Checks whether the cache is full
        Returns:
        true if full, or false otherwise
      • capacity

        long capacity()
        Gets the cache pool size