public abstract class AbstractMongoTemplate extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
AbstractMongoTemplate.Builder
Abstract Builder class to instantiate a
AbstractMongoTemplate. |
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractMongoTemplate(AbstractMongoTemplate.Builder builder)
Instantiate a
AbstractMongoTemplate based on the fields contained in the AbstractMongoTemplate.Builder. |
| Modifier and Type | Method and Description |
|---|---|
protected com.mongodb.client.MongoDatabase |
database()
Returns a reference to the Database with the configured database name.
|
protected AbstractMongoTemplate(AbstractMongoTemplate.Builder builder)
AbstractMongoTemplate based on the fields contained in the AbstractMongoTemplate.Builder.
Will assert that the MongoDatabase is not null, and will throw an AxonConfigurationException if any of them is null.
builder - the AbstractMongoTemplate.Builder used to instantiate a AbstractMongoTemplate instanceprotected com.mongodb.client.MongoDatabase database()
Note that the configured userName and password are ignored if the database is already in an
authenticated state.
Copyright © 2010–2022. All rights reserved.