Interface AdvancedCacheWriter<K,​V>

    • Method Detail

      • clear

        void clear()
        Deprecated.
        Removes all the data from the storage.
        Throws:
        PersistenceException - in case of an error, e.g. communicating with the external storage
      • purge

        void purge​(Executor threadPool,
                   AdvancedCacheWriter.PurgeListener<? super K> listener)
        Deprecated.
        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.

        Throws:
        PersistenceException - in case of an error, e.g. communicating with the external storage