public class InMemoryStoreProvider extends Object implements PersistentStoreProvider
| Constructor and Description |
|---|
InMemoryStoreProvider(int capacity) |
| 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 void close()
throws Exception
close in interface AutoCloseableExceptionpublic <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.getOrCreateStore in interface PersistentStoreProviderV - store value typeconfig - store configurationStoreExceptionpublic void start()
throws Exception
PersistentStoreProviderstart in interface PersistentStoreProviderExceptionCopyright © 2017 The Apache Software Foundation. All rights reserved.