public class AdvancedSingletonCacheWriter extends SingletonCacheWriter implements AdvancedCacheWriter
SingletonCacheWriter.PushStateException, SingletonCacheWriter.SingletonStoreListenerAdvancedCacheWriter.PurgeListener<K>active, executoractual, ctx| Constructor and Description |
|---|
AdvancedSingletonCacheWriter(CacheWriter actual,
SingletonStoreConfiguration singletonConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all the data from the storage.
|
void |
purge(Executor threadPool,
AdvancedCacheWriter.PurgeListener task)
Using the thread in the pool, removed all the expired data from the persistence storage.
|
activeStatusChanged, awaitForPushToFinish, createPushStateTask, delete, pushState, start, stop, toString, writeinit, undelegateclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitdelete, init, writepublic AdvancedSingletonCacheWriter(CacheWriter actual, SingletonStoreConfiguration singletonConfiguration)
public void clear()
AdvancedCacheWriterclear in interface AdvancedCacheWriterpublic void purge(Executor threadPool, AdvancedCacheWriter.PurgeListener task)
AdvancedCacheWriterWhen 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.
purge in interface AdvancedCacheWriterCopyright © 2025 JBoss, a division of Red Hat. All rights reserved.