public class AdvancedAsyncCacheWriter extends AsyncCacheWriter implements AdvancedCacheWriter
AdvancedCacheWriter.PurgeListener<K>asyncConfiguration, state, stateLockactual, ctx| Constructor and Description |
|---|
AdvancedAsyncCacheWriter(CacheWriter delegate) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all the data from the storage.
|
protected void |
clearStore() |
void |
purge(Executor threadPool,
AdvancedCacheWriter.PurgeListener task)
Using the thread in the pool, removed all the expired data from the persistence storage.
|
applyModificationsSync, delete, getState, init, newState, start, stop, writeundelegateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdelete, init, writepublic AdvancedAsyncCacheWriter(CacheWriter delegate)
public 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 AdvancedCacheWriterpublic void clear()
AdvancedCacheWriterclear in interface AdvancedCacheWriterprotected void clearStore()
clearStore in class AsyncCacheWriterCopyright © 2024 JBoss, a division of Red Hat. All rights reserved.