public class AdvancedAsyncCacheWriter extends AsyncCacheWriter implements AdvancedCacheWriter
AdvancedCacheWriter.PurgeListener<K>
asyncConfiguration, state, stateLock
actual, 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, write
undelegate
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
delete, init, write
public AdvancedAsyncCacheWriter(CacheWriter delegate)
public void purge(Executor threadPool, AdvancedCacheWriter.PurgeListener task)
AdvancedCacheWriter
When 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 AdvancedCacheWriter
public void clear()
AdvancedCacheWriter
clear
in interface AdvancedCacheWriter
protected void clearStore()
clearStore
in class AsyncCacheWriter
Copyright © 2017 JBoss, a division of Red Hat. All rights reserved.