Package org.infinispan.persistence.spi
The Persistence SPI.
-
Interface Summary Interface Description AdvancedCacheExpirationWriter<K,V> Defines functionality for advanced expiration techniques.AdvancedCacheExpirationWriter.ExpirationPurgeListener<K,V> Callback to be notified when an entry is removed by theAdvancedCacheExpirationWriter.purge(Executor, ExpirationPurgeListener)
method.AdvancedCacheLoader<K,V> A specialised extension of theCacheLoader
interface that allows processing parallel iteration over the existing entries.AdvancedCacheLoader.CacheLoaderTask<K,V> Deprecated. since 9.3 The process method is deprecated and thus this class shouldn't be in use any moreAdvancedCacheLoader.TaskContext Deprecated. since 9.3 The process method is no longer suggested and thus this class shouldn't be in use any moreAdvancedCacheWriter<K,V> Defines advanced functionality for persisting data to an external storage.AdvancedCacheWriter.PurgeListener<K> Callback to be notified when an entry is removed by theAdvancedCacheWriter.purge(java.util.concurrent.Executor, org.infinispan.persistence.spi.AdvancedCacheWriter.PurgeListener)
method.AdvancedLoadWriteStore<K,V> Advanced interface for interacting with an external store in a read-write mode.CacheLoader<K,V> Defines the logic for loading data from an external storage.CacheWriter<K,V> Allows persisting data to an external storage, as opposed to theCacheLoader
.ExternalStore<K,V> Basic interface for interacting with an external store in a read-write mode.FlagAffectedStore<K,V> Implemented by stores that can skip writes based on certain flags present in the invocation.InitializationContext Aggregates the initialisation state needed by either aCacheLoader
or aCacheWriter
.LocalOnlyCacheLoader Marker interface for cache loaders that should only load values on the originating nodes.MarshallableEntry<K,V> Defines an externally persisted entry.MarshallableEntryFactory<K,V> Factory forMarshallableEntry
.MarshalledValue A marshallable object containing serialized representations of cache values and metadata, that can be used to store values, metadata and timestamps as a single entity.SegmentedAdvancedLoadWriteStore<K,V> An interface implementing bothAdvancedCacheWriter
andAdvancedCacheLoader
as well as overrides of those methods that can be optimized when a segment is already known for the key or a subset of segments are to be used instead of the entire store.TransactionalCacheWriter<K,V> Defines the functionality of a transactional store. -
Exception Summary Exception Description PersistenceException An exception thrown by aCacheLoader
or aCacheWriter
implementation if there are problems reading from a loader.StoreUnavailableException An exception thrown by thePersistenceManager
if one or more stores are unavailable when a cache operation is attempted.