public class CachingPersistentStoreProvider extends BasePersistentStoreProvider
| Constructor and Description |
|---|
CachingPersistentStoreProvider(PersistentStoreProvider provider) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
<V> PersistentStore<V> |
getOrCreateStore(PersistentStoreConfig<V> config)
Gets or creates a
persistent store for the given configuration. |
void |
start()
Sets up the provider.
|
public CachingPersistentStoreProvider(PersistentStoreProvider provider)
public <V> PersistentStore<V> getOrCreateStore(PersistentStoreConfig<V> config) throws StoreException
PersistentStoreProviderpersistent store for the given configuration.
Note that implementors have liberty to cache previous store instances.V - store value typeconfig - store configurationStoreExceptionpublic void start()
throws Exception
PersistentStoreProviderstart in interface PersistentStoreProviderstart in class BasePersistentStoreProviderExceptionpublic void close()
throws Exception
close in interface AutoCloseableclose in class BasePersistentStoreProviderExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.