Interface ClaimingCache<K,V>

All Known Implementing Classes:
ClaimingCacheOverAsync

public interface ClaimingCache<K,V>
  • Method Summary

    Modifier and Type
    Method
    Description
    claim(K key)
    Claim a reference to the key's entry.
    Cannot raise an ExecutionException because it does not trigger loading
    void
    Get a resource without claiming it.
  • Method Details

    • claim

      Ref<V> claim(K key)
      Claim a reference to the key's entry.
      Parameters:
      key -
      Returns:
      Throws:
      ExecutionException
    • claimIfPresent

      Ref<V> claimIfPresent(K key)
      Cannot raise an ExecutionException because it does not trigger loading
    • invalidateAll

      void invalidateAll()
      Get a resource without claiming it. Its cache entry may get evicted any time such that a later invocation of #get(Object) returns a fresh future