Package org.wildfly.clustering.cache
Interface CacheEntryRemover<I>
- Type Parameters:
I- the identifier type of the removed value
- All Known Subinterfaces:
SessionAttributesFactory<C,,V> SessionFactory<C,,MV, AV, SC> SessionMetaDataFactory<V>,UserContextFactory<V,,PC, TC> UserFactory<CV,,C, T, SV, D, S> UserSessionsFactory<V,D, S>
- All Known Implementing Classes:
CoarseSessionAttributesFactory,CoarseSessionAttributesFactory,CompositeSessionFactory,CompositeUserFactory,FineSessionAttributesFactory,FineSessionAttributesFactory,HotRodSessionFactory,HotRodSessionMetaDataFactory,HotRodUserContextFactory,HotRodUserSessionsFactory,InfinispanSessionMetaDataFactory,InfinispanUserContextFactory,InfinispanUserSessionsFactory
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.
-