NonBlockingStore@Experimental @Deprecated public interface AdvancedCacheExpirationWriter<K,V> extends AdvancedCacheWriter<K,V>
| Modifier and Type | Interface and Description |
|---|---|
static interface |
AdvancedCacheExpirationWriter.ExpirationPurgeListener<K,V>
Deprecated.
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)
Deprecated.
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)
Deprecated.
This method is never called.
|
clearbulkUpdate, delete, deleteBatch, init, isAvailable, writevoid 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 © 2021 JBoss by Red Hat. All rights reserved.