Class AdvancedAsyncCacheWriter

    • Constructor Detail

      • AdvancedAsyncCacheWriter

        public AdvancedAsyncCacheWriter​(CacheWriter delegate)
    • Method Detail

      • purge

        public void purge​(Executor threadPool,
                          AdvancedCacheWriter.PurgeListener task)
        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