Package me.ahoo.cosid.store.mongo
Class MongoStoreProvider
java.lang.Object
me.ahoo.cosid.store.mongo.MongoStoreProvider
- All Implemented Interfaces:
me.ahoo.cosid.store.StoreProvider
Opens
MongoStores, type mongo (06-stores.md ยง1); registered for ServiceLoader.
Options: database, the database name ("cosid_db" by default); uri, the
connection string, required unless StoreConfig.client() holds a MongoClient. An injected client stays
open when the store closes; one built from uri is closed with it; writeConcern, the write concern
(majority by default, see writeConcern(String, Object)). StoreConfig.timeout() becomes the
driver's operation timeout (timeoutMS).
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
TYPE
The store type.- See Also:
-
DATABASE
The option naming the database.- See Also:
-
URI
The option holding the connection string.- See Also:
-
WRITE_CONCERN
The option holding the write concern.- See Also:
-
-
Constructor Details
-
MongoStoreProvider
public MongoStoreProvider()
-
-
Method Details
-
type
- Specified by:
typein interfaceme.ahoo.cosid.store.StoreProvider
-
options
- Specified by:
optionsin interfaceme.ahoo.cosid.store.StoreProvider
-
open
public me.ahoo.cosid.store.Store open(me.ahoo.cosid.store.StoreConfig config) - Specified by:
openin interfaceme.ahoo.cosid.store.StoreProvider
-