public static interface Store.Provider
extends org.ehcache.spi.service.Service
Store.Provider have to be thread-safe.| Modifier and Type | Method and Description |
|---|---|
<K,V> Store<K,V> |
createStore(Store.Configuration<K,V> storeConfig,
org.ehcache.spi.service.ServiceConfiguration<?,?>... serviceConfigs)
Creates a new Store instance
|
void |
initStore(Store<?,?> resource)
Informs this Provider, a Store it created is being initialized
|
int |
rank(java.util.Set<org.ehcache.config.ResourceType<?>> resourceTypes,
java.util.Collection<org.ehcache.spi.service.ServiceConfiguration<?,?>> serviceConfigs)
Gets the internal ranking for the
Store instances provided by this Provider of the store's
ability to handle the specified resources. |
void |
releaseStore(Store<?,?> resource)
Informs this Provider, a Store it created is being disposed (i.e.
|
<K,V> Store<K,V> createStore(Store.Configuration<K,V> storeConfig, org.ehcache.spi.service.ServiceConfiguration<?,?>... serviceConfigs)
storeConfig - the basic configuration for the StoreserviceConfigs - the configurations the Provider may need to configure the Storevoid releaseStore(Store<?,?> resource)
resource - the store to releasevoid initStore(Store<?,?> resource)
resource - the store to initializeint rank(java.util.Set<org.ehcache.config.ResourceType<?>> resourceTypes,
java.util.Collection<org.ehcache.spi.service.ServiceConfiguration<?,?>> serviceConfigs)
Store instances provided by this Provider of the store's
ability to handle the specified resources. A higher rank value indicates a more capable Store.resourceTypes - the set of ResourceTypes for the store to handleserviceConfigs - the collection of ServiceConfiguration instances that may contribute
to the rankingStore created by this Provider
to handle the resource types specified by resourceTypes; a rank of 0 indicates the store
can not handle all types specified in resourceTypes