public interface AdvancedCacheExpirationWriter<K,V> extends AdvancedCacheWriter<K,V>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
AdvancedCacheExpirationWriter.ExpirationPurgeListener<K,V>
Callback to be notified when an entry is removed by the
purge(Executor, ExpirationPurgeListener) method. |
AdvancedCacheWriter.PurgeListener<K>| Modifier and Type | Method and Description |
|---|---|
void |
purge(Executor executor,
AdvancedCacheExpirationWriter.ExpirationPurgeListener<K,V> listener)
Using the thread in the pool, removed all the expired data from the persistence storage.
|
default void |
purge(Executor threadPool,
AdvancedCacheWriter.PurgeListener<? super K> listener)
This method is never called.
|
cleardelete, deleteBatch, init, isAvailable, write, writeBatchvoid 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 onlistener - the listener that is notified for each expired entryPersistenceException - in case of an error, e.g. communicating with the external storagedefault void purge(Executor threadPool, AdvancedCacheWriter.PurgeListener<? super K> listener)
AdvancedCacheExpirationWriter must instead
implement purge(Executor, ExpirationPurgeListener).purge in interface AdvancedCacheWriter<K,V>Copyright © 2020 JBoss, a division of Red Hat. All rights reserved.