Class CachingLookup<K,​V>

  • All Implemented Interfaces:
    ILookup<K,​V>

    public class CachingLookup<K,​V>
    extends java.lang.Object
    implements ILookup<K,​V>
    • Field Summary

      Fields 
      Modifier and Type Field Description
      ILookup<K,​V> lookup  
      java.util.concurrent.ConcurrentHashMap<K,​V> map  
      java.util.concurrent.atomic.AtomicReference<V> nullKeyValue  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      V valAt​(K key)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • lookup

        public final ILookup<K,​V> lookup
      • map

        public final java.util.concurrent.ConcurrentHashMap<K,​V> map
      • nullKeyValue

        public final java.util.concurrent.atomic.AtomicReference<V> nullKeyValue
    • Constructor Detail

      • CachingLookup

        public CachingLookup​(ILookup<K,​V> lookup)
    • Method Detail

      • valAt

        public V valAt​(K key)
        Specified by:
        valAt in interface ILookup<K,​V>