Ryan Emerson created ISPN-9794:
----------------------------------
Summary: Allow Cache flushes to stores on demand via JMX trigger
Key: ISPN-9794
URL:
https://issues.jboss.org/browse/ISPN-9794
Project: Infinispan
Issue Type: Enhancement
Components: Loaders and Stores
Affects Versions: 10.0.0.Alpha1
Reporter: Ryan Emerson
Assignee: Ryan Emerson
Fix For: 10.0.0.Final
We should introduce a {code}flush(Publisher<MarshalledEntry<K, V>>){code}
method to the AdvancedCacheWriter interface. This will simply iterate over the cache on a
best-effort basis (concurrent updates to the cache may be missed) and write it's
contents to the underlying store(s).
The flush method should be called by the PersistenceManager when an appropriate trigger
has been manually called by the user, for example JMX or REST.
Adding this capability will allow for use-cases where users don't want to write to the
underlying store during normal operation, however in certain circumstances they want to
persist the data. To achieve this, the user can configure a store as normal, whilst
setting the SKIP_CACHE_LOAD and SKIP_CACHE_STORE flags via AdvancedCache::withFlags.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)