Interface ClaimingCache<K,V>
- All Known Implementing Classes:
ClaimingCacheOverAsync
public interface ClaimingCache<K,V>
-
Method Summary
Modifier and TypeMethodDescriptionClaim a reference to the key's entry.claimIfPresent(K key) Cannot raise an ExecutionException because it does not trigger loadingvoidGet a resource without claiming it.
-
Method Details
-
claim
Claim a reference to the key's entry.- Parameters:
key-- Returns:
- Throws:
ExecutionException
-
claimIfPresent
-
invalidateAll
void invalidateAll()Get a resource without claiming it. Its cache entry may get evicted any time such that a later invocation ofreturns a fresh futureinvalid reference
#get(Object)
-