Class EntryWrapper<K,V>

Type Parameters:
K - The key type
V - The value type
All Implemented Interfaces:
Cloneable, Map.Entry<K,V>, CacheEntry<K,V>, MetadataAware

public class EntryWrapper<K,V> extends ForwardingCacheEntry<K,V>
Wrapper for CacheEntry(s) that can be used to update the cache when it's value is set.
  • Constructor Details

    • EntryWrapper

      public EntryWrapper(Cache<K,V> cache, CacheEntry<K,V> entry)
      Creates a new entry wrapper given the cache and entry. If the entry is itself an EntryWrapper then the inner entry is instead wrapped to prevent double cache.put operations. Also we then we can use the cache given as this could have different flags etc.
      cache - the cache to use on setValue
      entry - the actual entry
  • Method Details