Interface MutatorFactory<K,V>


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

    Modifier and Type
    Method
    Description
    default Mutator
    Creates a mutator for the specified cache entry.
    createMutator(K key, V value)
    Creates a mutator for the specified cache entry.
  • Method Details

    • 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