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 the
AdvancedCacheLoader<K,V>A specialised extension of the
CacheLoaderinterface 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 more AdvancedCacheLoader.TaskContext Deprecated.since 9.3 The process method is no longer suggested and thus this class shouldn't be in use any more AdvancedCacheWriter<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 the
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 the
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. InitializationContextAggregates the initialisation state needed by either a
LocalOnlyCacheLoaderMarker 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 for
MarshalledValueA 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 both
AdvancedCacheLoaderas 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 PersistenceExceptionAn exception thrown by a
CacheWriterimplementation if there are problems reading from a loader.
StoreUnavailableExceptionAn exception thrown by the
PersistenceManagerif one or more stores are unavailable when a cache operation is attempted.