Package org.infinispan.persistence.spi
Interface AdvancedCacheWriter<K,V>
- All Superinterfaces:
CacheWriter<K,
,V> Lifecycle
- All Known Subinterfaces:
AdvancedCacheExpirationWriter<K,
,V> AdvancedLoadWriteStore<K,
,V> SegmentedAdvancedLoadWriteStore<K,
,V> TransactionalCacheWriter<K,
V>
- All Known Implementing Classes:
AbstractSegmentedAdvancedLoadWriteStore
,ComposedSegmentedLoadWriteStore
@ThreadSafe
@Deprecated(forRemoval=true)
public interface AdvancedCacheWriter<K,V>
extends CacheWriter<K,V>
Deprecated, for removal: This API element is subject to removal in a future version.
Defines advanced functionality for persisting data to an external storage.
- Since:
- 6.0
- Author:
- Mircea Markus
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Deprecated, for removal: This API element is subject to removal in a future version.Callback to be notified when an entry is removed by thepurge(java.util.concurrent.Executor, org.infinispan.persistence.spi.AdvancedCacheWriter.PurgeListener)
method. -
Method Summary
Modifier and TypeMethodDescriptionvoid
clear()
Deprecated, for removal: This API element is subject to removal in a future version.Removes all the data from the storage.void
purge
(Executor threadPool, AdvancedCacheWriter.PurgeListener<? super K> listener) Deprecated, for removal: This API element is subject to removal in a future version.Using the thread in the pool, removed all the expired data from the persistence storage.Methods inherited from interface org.infinispan.persistence.spi.CacheWriter
bulkUpdate, delete, deleteBatch, init, isAvailable, write
-
Method Details
-
clear
void clear()Deprecated, for removal: This API element is subject to removal in a future version.Removes all the data from the storage.- Throws:
PersistenceException
- in case of an error, e.g. communicating with the external storage
-
purge
Deprecated, for removal: This API element is subject to removal in a future version.Using the thread in the pool, removed all the expired data from the persistence storage. For each removed entry, the supplied listener is invoked.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.
- Throws:
PersistenceException
- in case of an error, e.g. communicating with the external storage
-
NonBlockingStore