Interface MutatorFactory<K,​V>


  • public interface MutatorFactory<K,​V>
    Creates a mutator instance for a given cache entry.
    Author:
    Paul Ferraro
    • Method Detail

      • createMutator

        default Mutator createMutator​(Map.Entry<K,​V> entry)
        Creates a mutator for the specified cache entry.
        Parameters:
        entry - a cache entry
        Returns:
        a mutator
      • createMutator

        Mutator createMutator​(K key,
                              V value)
        Creates a mutator for the specified cache entry.
        Parameters:
        key - a cache key
        value - a cache value
        Returns:
        a mutator