Package org.aksw.commons.cache.plain
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
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
-