Class AdvancedSingletonCacheWriter

  • All Implemented Interfaces:
    Lifecycle, AdvancedCacheWriter, CacheWriter

    @Deprecated
    public class AdvancedSingletonCacheWriter
    extends SingletonCacheWriter
    implements AdvancedCacheWriter
    Deprecated.
    this writer will be removed in 10.0. If it is desirable that all nodes don't write to the underlying store then a shared store should be used instead, as this only performs store writes at a key's primary owner.
    Since:
    6.0
    Author:
    Mircea Markus
    • Method Detail

      • purge

        public void purge​(java.util.concurrent.Executor threadPool,
                          AdvancedCacheWriter.PurgeListener task)
        Deprecated.
        Description copied from interface: AdvancedCacheWriter
        Using the thread in the pool, removed all the expired data from the persistence storage. For each removed entry, the supplied listener is invoked.

        When this method returns all entries will be purged and no tasks will be running due to this loader in the provided executor. If however an exception is thrown there could be tasks still pending or running in the executor.

        Specified by:
        purge in interface AdvancedCacheWriter