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 Details

    • remove

      default void remove(I id)
      Removes the specified entry from the cache.
      Parameters:
      id - the cache entry identifier.
    • removeAsync

      CompletionStage<Void> removeAsync(I id)
      Removes the specified entry from the cache.
      Parameters:
      id - the cache entry identifier.
      Returns:
      true, if the entry was removed.
    • purge

      default void purge(I id)
      Like remove(Object), but does not notify listeners.
      Parameters:
      id - the cache entry identifier.
    • purgeAsync

      default CompletionStage<Void> purgeAsync(I id)
      Removes the specified entry from the cache.
      Parameters:
      id - the cache entry identifier.
      Returns:
      true, if the entry was removed.