K
- V
- 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.
|
clear, purge
delete, init, write
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 onlistener
- the listener that is notified for each expired entryPersistenceException
- in case of an error, e.g. communicating with the external storageCopyright © 2017 JBoss, a division of Red Hat. All rights reserved.