org.ehcache.spi.cache
Interface Store.Provider

All Superinterfaces:
Service
All Known Implementing Classes:
CacheStore.Provider, DefaultStoreProvider, OffHeapDiskStore.Provider, OffHeapStore.Provider, OnHeapStore.Provider, XAStore.Provider
Enclosing interface:
Store<K,V>

public static interface Store.Provider
extends Service

The Service used to create Stores. Implementation of Store.Provider have be thread-safe.


Method Summary
<K,V> Store<K,V>
createStore(Store.Configuration<K,V> storeConfig, ServiceConfiguration<?>... serviceConfigs)
          Creates a new Store instance
 void initStore(Store<?,?> resource)
          Informs this Provider, a Store it created is being initialized
 void releaseStore(Store<?,?> resource)
          Informs this Provider, a Store it created is being disposed (i.e.
 
Methods inherited from interface org.ehcache.spi.service.Service
start, stop
 

Method Detail

createStore

<K,V> Store<K,V> createStore(Store.Configuration<K,V> storeConfig,
                             ServiceConfiguration<?>... serviceConfigs)
Creates a new Store instance

Parameters:
storeConfig - the basic configuration for the Store
serviceConfigs - the configurations the Provider may need to configure the Store
Returns:
the Store honoring the configurations passed in

releaseStore

void releaseStore(Store<?,?> resource)
Informs this Provider, a Store it created is being disposed (i.e. closed)

Parameters:
resource -

initStore

void initStore(Store<?,?> resource)
Informs this Provider, a Store it created is being initialized

Parameters:
resource -