public class MongoPersistentStoreProvider extends BasePersistentStoreProvider
Constructor and Description |
---|
MongoPersistentStoreProvider(PersistentStoreRegistry<?> registry) |
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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getOrCreateVersionedStore
public MongoPersistentStoreProvider(PersistentStoreRegistry<?> registry)
public void start() throws IOException
PersistentStoreProvider
start
in interface PersistentStoreProvider
start
in class BasePersistentStoreProvider
IOException
public <V> PersistentStore<V> getOrCreateStore(PersistentStoreConfig<V> config)
PersistentStoreProvider
persistent store
for the given configuration.
Note that implementors have liberty to cache previous store
instances.V
- store value typeconfig
- store configurationpublic void close()
close
in interface AutoCloseable
close
in class BasePersistentStoreProvider
Copyright © 1970 The Apache Software Foundation. All rights reserved.