Package org.wildfly.clustering.cache
Interface Remover<K>
public interface Remover<K>
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(K id) Removes the specified entry from the cache.default voidRemoves the specified entry from the cache.removeAsync(K 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.
-