Interface CacheEntryRemover<I>
- Type Parameters:
I- the identifier type of the removed value
public interface CacheEntryRemover<I>
Removes an entry from a cache.
- Author:
- Paul Ferraro
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidLikeremove(Object), but does not notify listeners.default CompletionStage<Void> purgeAsync(I id) Removes the specified entry from the cache.default voidRemoves the specified entry from the cache.removeAsync(I id) Removes the specified entry from the cache.
-
Method Details
-
remove
Removes the specified entry from the cache.- Parameters:
id- the cache entry identifier.
-
removeAsync
Removes the specified entry from the cache.- Parameters:
id- the cache entry identifier.- Returns:
- true, if the entry was removed.
-
purge
Likeremove(Object), but does not notify listeners.- Parameters:
id- the cache entry identifier.
-
purgeAsync
Removes the specified entry from the cache.- Parameters:
id- the cache entry identifier.- Returns:
- true, if the entry was removed.
-