[
https://issues.redhat.com/browse/ISPN-7169?page=com.atlassian.jira.plugin...
]
Dan Berindei commented on ISPN-7169:
------------------------------------
[~william.burns] I would suggest instead adding a method {{CacheLoader.accessMode()}},
that would return {{SHARED}}, {{PRIVATE}}, or {{BOTH}}.
The default implementation would return {{BOTH}}, but concrete implementations would be
encouraged to return {{SHARED}} or {{PRIVATE}}.
If the store's access mode and the {{shared}} attribute in configuration disagree, we
would throw an exception on startup, but if {{shared}} is missing in the configuration
then we can use the store's access mode instead of defaulting to {{shared=false}}.
I'm pretty sure {{DummyInMemoryStore}} is the only store that can reasonably be used
both as a private store and as a shared store, and if we eventually decide to remove
{{BOTH}} it's really easy to add a {{shared}} attribute specific to
{{DummyInMemoryStore}}.
Add marker interface to determine if a store can be shared or not
-----------------------------------------------------------------
Key: ISPN-7169
URL:
https://issues.redhat.com/browse/ISPN-7169
Project: Infinispan
Issue Type: Enhancement
Components: Loaders and Stores
Reporter: Will Burns
Priority: Major
We should add a new marker interface to tell if a store can be shared or not. Then at
configuration time if a store was marked as shared by the user but doesn't have the
interface we can throw an exception explaining you should only share supported stores.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)