public interface AdvancedCacheExpirationWriter<K,V> extends AdvancedCacheWriter<K,V>
|Modifier and Type||Interface and Description|
Callback to be notified when an entry is removed by the
|Modifier and Type||Method and Description|
Using the thread in the pool, removed all the expired data from the persistence storage.
void purge(Executor executor, AdvancedCacheExpirationWriter.ExpirationPurgeListener<K,V> listener)
AdvancedCacheWriter.purge(Executor, PurgeListener)since it allows for value and metadata to be provided which provides more accurate expiration when coordination is required.
executor- the executor to invoke the given command on
listener- the listener that is notified for each expired entry
PersistenceException- in case of an error, e.g. communicating with the external storage
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.