Interface ResumeCache<K,​V>

  • Type Parameters:
    K - the type of the key
    V - the type of the offset value

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

      • 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
      • get

        Optional<V> get​(K key)
        Gets the offset value for the key
        Parameters:
        key - the key
        Returns:
        the key