Class FutureMap<K extends Serializable,V,C>

java.lang.Object
org.exoplatform.commons.cache.future.FutureCache<K,V,C>
org.exoplatform.commons.cache.future.FutureMap<K,V,C>

public class FutureMap<K extends Serializable,V,C> extends FutureCache<K,V,C>
  • Constructor Summary

    Constructors
    Constructor
    Description
    FutureMap(Loader<K,V,C> loader)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
     
    protected V
    get(K key)
    Retrieves the cached value corresponding to the specified key from the cache, it must returns null when the key does not exist.
     
    protected void
    put(K key, V value)
    Updates the cache with a new key/value pair.
    protected void
    putOnly(K key, V value)
    Updates the cache only local mode with a new key/value pair.
    void
    remove(K key)
     

    Methods inherited from class org.exoplatform.commons.cache.future.FutureCache

    get

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • FutureMap

      public FutureMap(Loader<K,V,C> loader)
  • Method Details

    • getKeys

      public Set<K> getKeys()
    • clear

      public void clear()
    • remove

      public void remove(K key)
    • get

      protected V get(K key)
      Description copied from class: FutureCache
      Retrieves the cached value corresponding to the specified key from the cache, it must returns null when the key does not exist. This method is intended for internal use by the future cache only.
      Specified by:
      get in class FutureCache<K extends Serializable,V,C>
      Parameters:
      key - the key
      Returns:
      the cache value
    • put

      protected void put(K key, V value)
      Description copied from class: FutureCache
      Updates the cache with a new key/value pair. This method is intended for internal use by the future cache only.
      Specified by:
      put in class FutureCache<K extends Serializable,V,C>
      Parameters:
      key - the key
      value - the cache value
    • putOnly

      protected void putOnly(K key, V value)
      Description copied from class: FutureCache
      Updates the cache only local mode with a new key/value pair. This method is intended for internal use by the future cache only.
      Specified by:
      putOnly in class FutureCache<K extends Serializable,V,C>
      Parameters:
      key - the key
      value - the cache value