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:
JdbcStringBasedStore
,JpaStore
,RemoteStore
,RestStore
,SingleFileStore
,SoftIndexFileStore
@ThreadSafe @Deprecated public interface AdvancedCacheWriter<K,V> extends CacheWriter<K,V>
Deprecated.since 11.0 replaced byNonBlockingStore
Defines advanced functionality for persisting data to an external storage.- Since:
- 6.0
- Author:
- Mircea Markus
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static interface
AdvancedCacheWriter.PurgeListener<K>
Deprecated.Callback to be notified when an entry is removed by thepurge(java.util.concurrent.Executor, org.infinispan.persistence.spi.AdvancedCacheWriter.PurgeListener)
method.
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description void
clear()
Deprecated.Removes all the data from the storage.void
purge(Executor threadPool, AdvancedCacheWriter.PurgeListener<? super K> listener)
Deprecated.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 Detail
-
clear
void clear()
Deprecated.Removes all the data from the storage.- Throws:
PersistenceException
- in case of an error, e.g. communicating with the external storage
-
purge
void purge(Executor threadPool, AdvancedCacheWriter.PurgeListener<? super K> listener)
Deprecated.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
-
-