public interface KeyStoreRegistry
Store
and KeyStore
instances in order to support a
ShardAwareStoreService
creating and invalidating on a per-shard basis.Modifier and Type | Method and Description |
---|---|
boolean |
containsStore(Class<?> valueClass)
Return if this registry contains a
Store instance for the given value class. |
<K extends Comparable<K>,V> |
getKeyStore(Class<V> valueClass)
Return the saved
KeyStore for the given value type. |
<K extends Comparable<K>,V> |
getValueStore(Class<K> keyClass,
Class<V> valueClass)
Return the saved
Store with the given key and value type as parameters. |
<V,K extends Comparable<K>> |
putStore(Class<V> valueClass,
Store<K,V> store)
Add a
Store to the registry under its value type. |
boolean containsStore(Class<?> valueClass)
Store
instance for the given value class.valueClass
- the class to perform a lookup withtrue
if a Store
for the given class exists, false
otherwise.<V,K extends Comparable<K>> void putStore(Class<V> valueClass, Store<K,V> store)
Store
to the registry under its value type.<K extends Comparable<K>,V> Store<K,V> getValueStore(Class<K> keyClass, Class<V> valueClass)
Store
with the given key and value type as parameters.<K extends Comparable<K>,V> KeyStore<K> getKeyStore(Class<V> valueClass)
KeyStore
for the given value type.