Class ClaimingCacheOverAsync<K,V>

java.lang.Object
org.aksw.commons.cache.plain.ClaimingCacheOverAsync<K,V>
All Implemented Interfaces:
ClaimingCache<K,V>

public class ClaimingCacheOverAsync<K,V> extends Object implements ClaimingCache<K,V>
  • Field Details

  • Constructor Details

  • Method Details

    • wrap

      public static <K,V> ClaimingCache<K,V> wrap(AsyncClaimingCache<K,V> delegate)
    • claim

      public Ref<V> claim(K key)
      Description copied from interface: ClaimingCache
      Claim a reference to the key's entry.
      Specified by:
      claim in interface ClaimingCache<K,V>
      Parameters:
      key -
      Returns:
    • await

      protected Ref<V> await(RefFuture<V> refFuture)
    • claimIfPresent

      public Ref<V> claimIfPresent(K key)
      Description copied from interface: ClaimingCache
      Cannot raise an ExecutionException because it does not trigger loading
      Specified by:
      claimIfPresent in interface ClaimingCache<K,V>
    • invalidateAll

      public void invalidateAll()
      Description copied from interface: ClaimingCache
      Get a resource without claiming it. Its cache entry may get evicted any time such that a later invocation of
      invalid reference
      #get(Object)
      returns a fresh future
      Specified by:
      invalidateAll in interface ClaimingCache<K,V>